Hide Response Panel Until After Message

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
fetusboy
Posts: 1
Joined: Sat Sep 23, 2023 12:10 pm

Hide Response Panel Until After Message

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

Re: Hide Response Panel Until After Message

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