Keep panel open after conversation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
VoodooDetective
Posts: 222
Joined: Wed Jan 22, 2020 10:48 pm

Keep panel open after conversation

Post by VoodooDetective »

Is it possible to keep a panel open after a conversation has ended?

I've got a "doctor" minigame where a patient approaches and says what's wrong. I'd like the panel to remain on screen until the treatment is complete, but that takes a while and I want the player to be able to reference the text. It'll only ever be a single dialgoue cell.

Should I be using the sequencer to wait for a message or is there a better way to do this? Ideally the panel would remain open the entire time the scene is loaded.
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Keep panel open after conversation

Post by Tony Li »

If it's a one-off, consider leaving the conversation active by using a WaitForMessage() sequencer command on the last node. Example:
  • Sequence: WaitForMessage(TreatmentComplete)
When the player is done, use this C# code to send the message:

Code: Select all

Sequencer.Message("TreatmentComplete");
Alternatively, you can set up a custom dialogue UI for the scene that always stays open. Don't assign the Main Panel to the Standard Dialogue UI. Use an Override Dialogue UI component to tell the conversation to use this dialogue UI.
VoodooDetective
Posts: 222
Joined: Wed Jan 22, 2020 10:48 pm

Re: Keep panel open after conversation

Post by VoodooDetective »

OK great thanks! I didn't know about the second option. It is sort of a one off situation so I'll just try using the WaitForMessage/Sequencer combo.

Thanks!
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Keep panel open after conversation

Post by Tony Li »

Glad to help!
Post Reply