Page 1 of 1

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

Posted: Sun Nov 15, 2020 10:16 am
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... :(

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

Posted: Sun Nov 15, 2020 10:28 am
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.

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

Posted: Sun Nov 15, 2020 1:18 pm
by muramasa
Cool! it works! thank you Tony! :)

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

Posted: Sun Nov 15, 2020 1:29 pm
by Tony Li
Happy to help!

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

Posted: Sun Nov 15, 2020 2:50 pm
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)?

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

Posted: Sun Nov 15, 2020 2:59 pm
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();
}

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

Posted: Sun Nov 15, 2020 3:26 pm
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! :)

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

Posted: Sun Nov 15, 2020 6:55 pm
by Tony Li
Hi,

No problem! Glad you found it.