Continue button with bubble template

Announcements, support questions, and discussion for the Dialogue System.
Tetralogia
Posts: 45
Joined: Wed Jan 09, 2019 7:49 am

Re: Continue button with bubble template

Post by Tetralogia »

I figured out the problem, it was due to the global architecture of my code.

Thanks a lot for your help!
User avatar
Tony Li
Posts: 21987
Joined: Thu Jul 18, 2013 1:27 pm

Re: Continue button with bubble template

Post by Tony Li »

Glad to help!
Tetralogia
Posts: 45
Joined: Wed Jan 09, 2019 7:49 am

Re: Continue button with bubble template

Post by Tetralogia »

Hi!

I'm using the OnContinue() method in my controller:

Code: Select all

void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space) && !waitTypeWriter)
        {
            standardUISubtitlePanel.OnContinue();
        }
    }
I was wondering if I could start a sequence when calling OnContinue(), instead of what I'm doing now:

Code: Select all

MyFunction()@Message(Typed)
Maybe there is a way to create custom messages?
User avatar
Tony Li
Posts: 21987
Joined: Thu Jul 18, 2013 1:27 pm

Re: Continue button with bubble template

Post by Tony Li »

Hi,

You can use Sequencer.Message() to send a custom message. For example, C# code:

Code: Select all

void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space) && !waitTypeWriter)
        {
            Sequencer.Message("MyMessage");
        }
    }
And a dialogue entry node's Sequence:

Code: Select all

Audio(say_continuing_now)@Message(MyMessage);
Continue()@Message(MyMessage)
Tetralogia
Posts: 45
Joined: Wed Jan 09, 2019 7:49 am

Re: Continue button with bubble template

Post by Tetralogia »

Great! Thanks :)
User avatar
Tony Li
Posts: 21987
Joined: Thu Jul 18, 2013 1:27 pm

Re: Continue button with bubble template

Post by Tony Li »

Happy to help! :-)
Post Reply