Showing Dialogue at the same time as Menu Responses

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Kedelee
Posts: 3
Joined: Sat May 29, 2021 10:08 am

Showing Dialogue at the same time as Menu Responses

Post 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!
User avatar
Tony Li
Posts: 22162
Joined: Thu Jul 18, 2013 1:27 pm

Re: Showing Dialogue at the same time as Menu Responses

Post by Tony Li »

Hi,

Try setting the PC Subtitle Panel's Visibility to Until Superceded.
Kedelee
Posts: 3
Joined: Sat May 29, 2021 10:08 am

Re: Showing Dialogue at the same time as Menu Responses

Post 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!
User avatar
Tony Li
Posts: 22162
Joined: Thu Jul 18, 2013 1:27 pm

Re: Showing Dialogue at the same time as Menu Responses

Post 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?
Kedelee
Posts: 3
Joined: Sat May 29, 2021 10:08 am

Re: Showing Dialogue at the same time as Menu Responses

Post 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.
User avatar
Tony Li
Posts: 22162
Joined: Thu Jul 18, 2013 1:27 pm

Re: Showing Dialogue at the same time as Menu Responses

Post 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?
Post Reply