How to include the Custom panel in the SetDialoguePanel() command

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
2gold
Posts: 19
Joined: Wed Aug 18, 2021 2:56 am

How to include the Custom panel in the SetDialoguePanel() command

Post by 2gold »

Hello, Tony!
Before we start the conversation, we're going to put in a delay
We have used the following SequenceCommond.

Code: Select all

SetDialoguePanel(false,immediate);
Delay(5);
SetDialoguePanel(true);
However, we have modified the structure of the Standard UI and are using it.
I added GroupBG to put Dim, and I created SubTitleGroup using common subtitles. If you use SetDialoguePenel(), the newly created node is not affected by that command.
sample_dialogue.png
sample_dialogue.png (17.86 KiB) Viewed 452 times
Can we solve this simply?
Thank you always for your support!
User avatar
Tony Li
Posts: 22148
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to include the Custom panel in the SetDialoguePanel() command

Post by Tony Li »

Hi,

If Dialogue Panel is assigned to the Standard Dialogue UI component's Conversation UI Elements > Main Panel, it should be deactivated by SetDialoguePanel(false, immediate). Also, change the sequence to:

Code: Select all

SetDialoguePanel(false,immediate);
SetDialoguePanel(true)@5
All sequencer commands run immediately unless they have "@" to specify the time to run.

If the UI elements are not set up that way, you can use the alternate technique to hide the dialogue UI:

1. Give the dialogue UI's Canvas a unique name such as "DialogueCanvas".

2. Use this sequencer command instead:

Code: Select all

SetEnabled(Canvas, false, DialogueCanvas);
SetEnabled(Canvas, true, DialogueCanvas)@5
2gold
Posts: 19
Joined: Wed Aug 18, 2021 2:56 am

Re: How to include the Custom panel in the SetDialoguePanel() command

Post by 2gold »

I can't believe I wasted hours without finding such an easy solution. :oops:
Now it works well! :D Thank you for your help this time, too!

* I think I misunderstood the purpose of Delay().
Does Delay() simply delay the time to move on to the next node? *
User avatar
Tony Li
Posts: 22148
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to include the Custom panel in the SetDialoguePanel() command

Post by Tony Li »

Hi,

Yes, that's what Delay does.
Post Reply