Continue Button not reappearing after SetDialoguePanel(true)

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
vcesauron
Posts: 19
Joined: Tue Oct 06, 2020 11:22 am

Continue Button not reappearing after SetDialoguePanel(true)

Post by vcesauron »

Hello. I've been playing around with the plugin for a few days now, and I'm really enjoying it.

I'm using the SetDialoguePanel() sequence command, exactly like this post: http://pixelcrushers.com/phpbb/viewtopi ... 324#p15657

Code: Select all

SetDialoguePanel(false);
AnimatorPlayWait(Animation)->Message(Done);
SetDialoguePanel(true)@Message(Done)
Since I have the option "Continue Button" set to "Always" on my DialogueManager, I would expect the button to reactivate along with the rest of the panel when calling SetDialoguePanel(true). But this is not the case.
What happens is the button doesn't reactivate immediately, so I have to press "Escape" on my keyboard to go to the next message. On this next message though, the button is active again.

How do I make it behave as I was expecting?
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Continue Button not reappearing after SetDialoguePanel(true)

Post by Tony Li »

Hi,

It sounds like that may be a bug. I'll check it out and provide an answer or a patch by the end of the day.
User avatar
vcesauron
Posts: 19
Joined: Tue Oct 06, 2020 11:22 am

Re: Continue Button not reappearing after SetDialoguePanel(true)

Post by vcesauron »

Thank you for the response, Tony.

So I did a bit more research and found a workaround by arranging the nodes like below (or see attached picture):
  • Text: Lorem ipsum...
  • Text: Choice A | Text: Choice B
  • Text: (blank)
    Sequence:

    Code: Select all

    SetDialoguePanel(false);
    AnimatorPlayWait(Animation)->Message(Done);
    SetDialoguePanel(true)@Message(Done);
    Continue()@Message(Done);
  • Text: ...dolor sit amet...
This works exactly as I wanted: The player picks a response -> UI disappears -> Animation plays -> On animation ended, UI returns and dialog advances (with Continue Button also reappearing correctly).
I guess I was missing a Continue() command, which caused the flow to be stuck on the previous node, without the button because I had pressed it already.
I didn't think the Continue() was needed after reading through the docs the first time, but it makes sense now.
Attachments
workaround-60pc.png
workaround-60pc.png (43.06 KiB) Viewed 292 times
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Continue Button not reappearing after SetDialoguePanel(true)

Post by Tony Li »

Sounds good. I've fixed SetDialoguePanel() for the next release so that it will properly show the continue button again if it was visible before hiding the dialogue panel.
Post Reply