How can I cancel subtitle (Skip dialogue) via continue button as input key?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
muramasa
Posts: 20
Joined: Tue Feb 11, 2020 7:29 am

How can I cancel subtitle (Skip dialogue) via continue button as input key?

Post by muramasa »

Hi Tony!

 I have a question and the solution seems can not be found by search the forum.
I hope I can cancel the subtitle (skip dialogue) via the continue button as input the key.

 now when I click the continue button it would finish the dialogue first, I have to click again to make it skip.
is there a way to allows me to skip the dialogue with one click?

 I have checked the function, there is only Onfastforward is work. I really need it please help me... :(
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: How can I cancel subtitle (Skip dialogue) via continue button as input key?

Post by Tony Li »

Hi,

Inspect the continue button's Button component. Remove the StandardUIContinueButtonFastForward.OnFastForward handler from the OnClick() event. the OnClick() event should now be empty.
User avatar
muramasa
Posts: 20
Joined: Tue Feb 11, 2020 7:29 am

Re: How can I cancel subtitle (Skip dialogue) via continue button as input key?

Post by muramasa »

Cool! it works! thank you Tony! :)
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: How can I cancel subtitle (Skip dialogue) via continue button as input key?

Post by Tony Li »

Happy to help!
User avatar
muramasa
Posts: 20
Joined: Tue Feb 11, 2020 7:29 am

Re: How can I cancel subtitle (Skip dialogue) via continue button as input key?

Post by muramasa »

Sorry... there is a new question pop up...
is there a setting to allows me to delay the cancellation a little bit? after I click the continue button?
now the continue button is close immediately so my playmaker FSM is no chance to run...

or, is there has any script like dialogue system event and it can allow me to send an event when I cancel the subtitle(Skip dialogue)?
Last edited by muramasa on Sun Nov 15, 2020 3:01 pm, edited 1 time in total.
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: How can I cancel subtitle (Skip dialogue) via continue button as input key?

Post by Tony Li »

Hi,

Instead of leaving the OnClick() event empty, you can assign your own script method or FSM call. After a delay, call DialogueManager.conversationView.OnConversationContinueAll(). For example, hook up OnClick() to a method like this:

Code: Select all

void ContinueAfterOneSecond() // Assign this to OnClick().
{
    Invoke("ContinueNow", 1);
}

void ContinueNow()
{
    DialogueManager.conversationView.OnConversationContinueAll();
}
User avatar
muramasa
Posts: 20
Joined: Tue Feb 11, 2020 7:29 am

Re: How can I cancel subtitle (Skip dialogue) via continue button as input key?

Post by muramasa »

Oops the function I need already exists on the Dialogue system events call "On Conversation Line End"

Sorry for waste your time. :p

thank you very much! :)
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: How can I cancel subtitle (Skip dialogue) via continue button as input key?

Post by Tony Li »

Hi,

No problem! Glad you found it.
Post Reply