Page 1 of 1

Continue Button not reappearing after SetDialoguePanel(true)

Posted: Tue Oct 06, 2020 11:43 am
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?

Re: Continue Button not reappearing after SetDialoguePanel(true)

Posted: Tue Oct 06, 2020 1:13 pm
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.

Re: Continue Button not reappearing after SetDialoguePanel(true)

Posted: Tue Oct 06, 2020 3:02 pm
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.

Re: Continue Button not reappearing after SetDialoguePanel(true)

Posted: Tue Oct 06, 2020 9:56 pm
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.