Page 1 of 2

Configuring the continue button

Posted: Mon Jun 24, 2019 4:12 pm
by devalus
Hi Tony it's me again :oops:

So I'm using the Textline plugin, but I'm trying to configure a mode where the dialogue doesn't automatically play and requires the player to hit a continue button to advance the dialogue. I have it working by creating a continue button utilizing StandardUIContinueButtonFastForward.

The one thing I can't figure out is how to only show the continue button when player input is required. I have Dialogue System Controller > Subtitle Settings > Continue Button set to Not for PC or Before PC Autoresponse or Menu and want the continue button to appear only when it needs to be clicked to advance.

Hoping for a direction on how to set this up.

Thank you for all your help!

Cheers,
Amy

Re: Configuring the continue button

Posted: Mon Jun 24, 2019 4:52 pm
by Tony Li
Hi Amy,

Is your continue button assigned to the NPC subtitle panel's Continue Button field?

Re: Configuring the continue button

Posted: Mon Jun 24, 2019 5:50 pm
by devalus
Hi Tony,

It was not, I assigned it to the NPC panel's Continue Button field and now it's forever hidden. The dialogue is paused waiting for the continue prompt but the button doesn't show up. I've tried it with Continue Button: Always on the Dialogue System Controller and the button is still always inactive.

I feel like I'm missing something very simple here

Re: Configuring the continue button

Posted: Mon Jun 24, 2019 6:09 pm
by Tony Li
No, you're not missing anything. Textline wasn't designed with continue buttons in mind. I'm checking right now to find the best way to set them up.

Re: Configuring the continue button

Posted: Mon Jun 24, 2019 8:01 pm
by Tony Li
Here's an updated TextlineDialogueUI script: TextlineDialogueUI_2019-06-24.unitypackage

And here's an example scene: TextlineContinueButtonExample_2019-06-24.unitypackage

The script is compatible with all Unity versions 5.6+.

The example scene was exported from Unity 2019.1. It imports into the Supplemental folder. Note that I added a typewriter effect to the NPC subtitle line and unticked its Play On Enable since the dialogue UI will manually kick off the typewriter as needed.

I'm still working on the EnhancedScroller issue.

Re: Configuring the continue button

Posted: Tue Jun 25, 2019 5:06 am
by devalus
Hi Tony!

I was testing this on a clean project and it's working as intended. However there is a bug where once the Continue Button shows up once, it will continue to appear for every npc dialogue even when it's not supposed to (like before response menus). I've recorded a gif to demonstrate this:


After the npc speaks 2 lines, requiring the continue button, the button persists to show up.

Sorry I know I've been bombarding you with all these questions, really appreciate the support you've been giving me :)

Cheers,
Amy

Re: Configuring the continue button

Posted: Tue Jun 25, 2019 7:47 am
by Tony Li
Hi Amy,

Thanks for catching that. I just need to update the script to handle the case where the continue button isn't shown before response menus. I'll post that later today.

Re: Configuring the continue button

Posted: Tue Jun 25, 2019 10:52 am
by Tony Li
This update should handle all of the continue button modes: TextlineDialogueUI_2019-06-25.unitypackage

Re: Configuring the continue button

Posted: Wed Jun 26, 2019 5:27 pm
by devalus
Thank you Tony, it's working now :)

Re: Configuring the continue button

Posted: Wed Jun 26, 2019 5:31 pm
by Tony Li
When I get kinks worked out of the EnhancedScroller version, I'll verify that continue buttons work properly there, too.