Page 1 of 1

Hide Response Panel Until After Message

Posted: Sat Sep 23, 2023 12:14 pm
by fetusboy
Hello! This has been a great asset to work with so far!

I am developing a dialogue where the player must click a "continue button" (not affiliated with PixelCrushers continue button) in a separate text panel to continue after the npc dialogue and audio. I would like the response panel to stay hidden until after the player presses the continue button. Setting active to the response panel seems to break it, so that won't work.

Any help would be awesome :)

Re: Hide Response Panel Until After Message

Posted: Sat Sep 23, 2023 2:54 pm
by Tony Li
Hi,

Set that dialogue entry node's Sequence to: WaitForMessage(ClickedContinueButton)

When the player clicks the continue button in your non-Dialogue System text panel, run this line of C# code:

Code: Select all

PixelCrushers.DialogueSystem.Sequencer.Message("ClickedContinueButton");
---

Note: If your conversations normally also wait for the player to click a Dialogue System continue button in the subtitle panel, change the Sequence to: Continue()@Message(ClickedContinueButton)