Page 1 of 1

How can I make the continue button finish the typewriter effect?

Posted: Sun Jan 15, 2023 8:14 am
by lizukadaky101
Hello. Im a total newbie to this plugin so I apologize for such a silly question, I tried to find the solution but I wasnt able to. How can I make it that on click of the continue button during a line of conversation it skips to the end of the line and waits for the next click? In my current instance it skips it right to the next line that goes after the first one.

Thanks to you in advance

Re: How can I make the continue button finish the typewriter effect?

Posted: Sun Jan 15, 2023 9:08 am
by Tony Li
Hi,

Thanks for using the Dialogue System!

1. Add a StandardUIContinueButtonFastForward component to your continue button.

2. Assign the subtitle text GameObject to the component.

3. Configure the Button component's OnClick() event to call StandardUIContinueButtonFastForward .OnFastForward.

To see an example of this configuration, inspect the continue buttons on any of the dialogue UI prefabs that ship with the Dialogue System. They're all configured with StandardUIContinueButtonFastForward.

Re: How can I make the continue button finish the typewriter effect?

Posted: Sun Jan 15, 2023 9:20 am
by lizukadaky101
Thank you for your response. Yes, I already have this OnClick Event set up. It does indeed skip the typewriter effect, but it also skips the whole text line. I just need it to fast forward the effect, then wait for another press of the continue button to skip to the next line of conversation.

Re: How can I make the continue button finish the typewriter effect?

Posted: Sun Jan 15, 2023 9:26 am
by Tony Li
Hi,

Make sure the Button's OnClick() event only calls StandardUIContinueButtonFastForward.OnFastForward and nothing else, and that the subtitle text's typewriter effect is assigned to the StandardUIContinueButtonFastForward component.

Re: How can I make the continue button finish the typewriter effect?

Posted: Sun Jan 15, 2023 9:43 am
by lizukadaky101
Oh I see, it works like a charm now. Thank you so much!

Re: How can I make the continue button finish the typewriter effect?

Posted: Sun Jan 15, 2023 9:55 am
by Tony Li
Glad to help!