When continue button mode change, how to avoid clicking

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Triphail
Posts: 5
Joined: Sat Sep 11, 2021 12:43 pm

When continue button mode change, how to avoid clicking

Post by Triphail »

Hi,I want to change continue button mode when scenes is playing, but when the mode is switched from always to never, I have to click the button then the conversation can automaticlly process. But I want to cancel the click, it means if the continue button mode change from always to never when scenes is playing, the conversarion can directly automaticlly process.
And I want to do a skipping conversation effect, it likes quickly flipping a book, you can see the dialogue, but it flash quickly to next until the selector node. I try to change the Subtitle Chars Per Second and the Min Subtitle Seconds to achieve it, but do you have the better way can do it?
User avatar
Tony Li
Posts: 21984
Joined: Thu Jul 18, 2013 1:27 pm

Re: When continue button mode change, how to avoid clicking

Post by Tony Li »

Hi,

Are you using the SetContinueMode() sequencer command to change the continue button mode? This should automatically advance the conversation when you use SetContinueMode(false). You can also manually advance by using the Continue() sequencer command.

If you're manually changing DialogueManager.displaySettings.subtitleSettings.continueButton, you must issue the next continue on your own by calling DialogueManager.standardDialogueUI.OnContinueConversation().

To speed up or slow down the typewriter, see this post.
Triphail
Posts: 5
Joined: Sat Sep 11, 2021 12:43 pm

Re: When continue button mode change, how to avoid clicking

Post by Triphail »

Thank you for your reply, but I can't determine the conversation node, I want to change continue button mode at a random conversation node. So I think the sequence won‘t work. Can you have other suggestion?
I use the StandardUIContinueButtonSpeedUp and ResetTypewriterSpeed, but it seems to change the speed of character text showing, I want to speed up overall conversation, it means one node to another node faster. so I try to change the subtitle showing speed and interval, but if you have other better way to do it?
User avatar
Tony Li
Posts: 21984
Joined: Thu Jul 18, 2013 1:27 pm

Re: When continue button mode change, how to avoid clicking

Post by Tony Li »

Triphail wrote: Tue Sep 14, 2021 3:05 amThank you for your reply, but I can't determine the conversation node, I want to change continue button mode at a random conversation node. So I think the sequence won‘t work. Can you have other suggestion?
Use DialogueManager.standardDialogueUI.OnContinueConversation(). It works the same as clicking the continue button.
Triphail wrote: Tue Sep 14, 2021 3:05 amI use the StandardUIContinueButtonSpeedUp and ResetTypewriterSpeed, but it seems to change the speed of character text showing, I want to speed up overall conversation, it means one node to another node faster. so I try to change the subtitle showing speed and interval, but if you have other better way to do it?
Also set DialogueManager.displaySettings.subtitleSettings.subtitleCharsPerSecond and minSubtitleSeconds. For example, if you set the typewriter characters per second to 120, then set these values:

Code: Select all

DialogueManager.displaySettings.subtitleSettings.subtitleCharsPerSecond = 120;
DialogueManager.displaySettings.subtitleSettings.minSubtitleSeconds = 0;
This assumes your dialogue entry node's Sequence fields are blank so they use the Dialogue Manager's Camera & Cutscene Settings > Default Sequence, and the Default Sequence is set to: Delay({{end}}) -- or that the node's Sequence uses {{end}}.
Post Reply