Page 1 of 1

Keep panel open after conversation

Posted: Wed Oct 14, 2020 11:54 pm
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.

Re: Keep panel open after conversation

Posted: Thu Oct 15, 2020 8:36 am
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.

Re: Keep panel open after conversation

Posted: Thu Oct 15, 2020 5:58 pm
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!

Re: Keep panel open after conversation

Posted: Thu Oct 15, 2020 8:30 pm
by Tony Li
Glad to help!