Page 1 of 1

Showing Dialogue at the same time as Menu Responses

Posted: Sat May 29, 2021 10:19 am
by Kedelee
Hi!

I just wanted to ask if it would be possible to keep the player’s last dialogue panel up at the same time as the response menu?

I’m trying to make my own Dialogue UI template and I’m hoping to make the PC Subtitle panel visible Only During Content so it disappears when NPCs talk. Is there a way I can keep it visible when the response menu appears so that the panel with the player’s name, portrait and last line of dialogue can be shown along with the choices?

Thank you!

Re: Showing Dialogue at the same time as Menu Responses

Posted: Sat May 29, 2021 11:25 am
by Tony Li
Hi,

Try setting the PC Subtitle Panel's Visibility to Until Superceded.

Re: Showing Dialogue at the same time as Menu Responses

Posted: Sat May 29, 2021 12:21 pm
by Kedelee
Hi!

Thanks so much for the reply.

I tried that but I’m trying also to make the PC’s panels not visible when the NPC’s panels appear. When it’s Until Superceded, sometimes both are visible at the same time. Is there a way of making the PCs panels invisible when the NPC talks but visible when the choices appear?

Thanks again!

Re: Showing Dialogue at the same time as Menu Responses

Posted: Sat May 29, 2021 2:59 pm
by Tony Li
Hi,

Until Superceded should make the PC panel disappear when the NPC panel appears. Under what conditions does this not happen? What is the NPC panel's Visibility set to?

Re: Showing Dialogue at the same time as Menu Responses

Posted: Mon May 31, 2021 5:15 am
by Kedelee
They were both set to Until Superceded but I found out that it was caused by a mistake I made in setting up the UI. I assigned the Default NPC and PC Panels but didn’t put them as Subtitle Panel elements. Thanks for the help! I thought Until Superceded was behaving like it was supposed to earlier and didn’t notice the mistakes.

Could I please ask another thing though? I was hoping to make the continue button and the response buttons clickable by both the mouse and the return key. At the moment though, while the return key works, I can’t get mouse clicks to register. I put a UIButtonKeyTrigger with Mouse 0 on the continue buttons so now those work. But when I try put that on the response buttons, only the first choice gets selected no matter what. When I take out the UI Button Key Trigger on the response buttons and click them with the mouse, they look like they’re being pressed but nothing happens. I’ve currently selected Always AutoFocus and Detect Mouse Control on the Input Device Manager.

Thanks again.

Re: Showing Dialogue at the same time as Menu Responses

Posted: Mon May 31, 2021 9:11 am
by Tony Li
Hi,

Don't use UI Button Key Trigger with mouse buttons or any keys that are mapped to the "Submit" input such as Space or Return.

If you can't click UI Buttons with the mouse, here are some things to check:
  • Does your scene have an EventSystem GameObject? (Inspect it and make sure it doesn't show any errors.)
  • Does your Canvas have a Graphic Raycaster?
  • Keep the Dialogue Manager's Input Device Manager component > Control Graphic Raycasters UNticked.
  • Keep an inspector view open on the EventSystem GameObject during play mode. When you mouse over the UI Buttons, does the bottom part of the inspector show that the EventSystem detects it?