Configuring the continue button

Announcements, support questions, and discussion for the Dialogue System.
devalus
Posts: 52
Joined: Tue Feb 20, 2018 5:09 pm

Configuring the continue button

Post 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
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Configuring the continue button

Post by Tony Li »

Hi Amy,

Is your continue button assigned to the NPC subtitle panel's Continue Button field?
devalus
Posts: 52
Joined: Tue Feb 20, 2018 5:09 pm

Re: Configuring the continue button

Post 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
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Configuring the continue button

Post 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.
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Configuring the continue button

Post 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.
devalus
Posts: 52
Joined: Tue Feb 20, 2018 5:09 pm

Re: Configuring the continue button

Post 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
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Configuring the continue button

Post 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.
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Configuring the continue button

Post by Tony Li »

This update should handle all of the continue button modes: TextlineDialogueUI_2019-06-25.unitypackage
devalus
Posts: 52
Joined: Tue Feb 20, 2018 5:09 pm

Re: Configuring the continue button

Post by devalus »

Thank you Tony, it's working now :)
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Configuring the continue button

Post by Tony Li »

When I get kinks worked out of the EnhancedScroller version, I'll verify that continue buttons work properly there, too.
Post Reply