Hiding dialogue UI during dialogue process

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hellwalker
Posts: 112
Joined: Tue Jan 19, 2016 11:37 pm

Hiding dialogue UI during dialogue process

Post by hellwalker »

Hi,

I want to avoid splitting conversation when there is a simple cinematic sequence in dialogue. So I was thinking of adding a dialogue node, during which all the dialogue UI would be hidden, so I could run my story sequences and then resume the normal dialogue flow. (This saves from having to use many variables to start/end conversations)

I thought about naming one character "Sequence" and whenever this character is "Speaking" during dialogue tree to hide UI. So I made something like this:

Code: Select all

        void OnConversationLine(Subtitle subtitle)
        {
            if (subtitle.speakerInfo.Name == "Sequence")
            {
                DialogueManager.DialogueUI.Close();
            }
            else
            {
                DialogueManager.DialogueUI.Open();
            }
            
        }
is this optimal way to go about this? I noticed if I'm using this along with dialogue template switching code from dialogue system extras, the new panel will still play slide in animation before closing.

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

Re: Hiding dialogue UI during dialogue process

Post by Tony Li »

Hi,

What do you mean by Fading, and by template switching?
Post Reply