How Can I change Cancel Subtitle Input's option?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Lee
Posts: 6
Joined: Mon Jan 22, 2024 10:02 am

How Can I change Cancel Subtitle Input's option?

Post by Lee »

Hello, I'm creating a 2D flatformer game using the dialogue system.

What I want is to change the function of the cancel subtitle input that the dialog manager has.

My goal is

When cancel subtitle input pressed once, subtitle cancel it's typewriter effects and it shows it's all words at once,
When cancel subtitle input pressed twice, it goes normally cancel subtitle.


I know that DisplaySettings class has GetCancelSubtitleInput().. but I don't know how to hande typewriter effects and apply option per subtitle
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: How Can I change Cancel Subtitle Input's option?

Post by Tony Li »

Hi,

My recommendation: Disable Cancel Subtitle Input and Cancel Conversation Input entirely. Set the Key dropdowns to None, and clear the Button fields.

Instead, use continue buttons like in the dialogue UI prefabs that ship with the Dialogue System. They all use StandardUIContinueButtonFastForward components, which have the behavior you describe.

Related:
Lee
Posts: 6
Joined: Mon Jan 22, 2024 10:02 am

Re: How Can I change Cancel Subtitle Input's option?

Post by Lee »

Thank you for your kind reply.

Because I am using Bubble Template Standard UI Subject Panel, I successfully put Continue Button in the prefab and use Standard UI Continue Button FastForward to stop TypeWriter,
I still don't know how to implement the functionality that goes to the next subtitle.
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: How Can I change Cancel Subtitle Input's option?

Post by Tony Li »

Hi,

When you click the continue button, if the typewriter is still typing it will fast forward to the end of the text.

If the typewriter is not typing, it should advance to the next subtitle.

Make sure the StandardUIContinueButtonFastForward's Typewriter Effect field is assigned. You can leave the Dialogue UI field unassigned since it's not part of the dialogue UI's hierarchy.

If this doesn't work, check if there are any errors or warnings in the Console window.
Lee
Posts: 6
Joined: Mon Jan 22, 2024 10:02 am

Re: How Can I change Cancel Subtitle Input's option?

Post by Lee »

Thank you very much!! I almost done. (_ _)

Now I use Basic Standard Dialogue UI, and it goes exactly what I want.

At last, I want to use Bubble Template Standard UI Subtitle Panel stead of Basic Standard Dialogue UI's NPC Subtitle Panel.

When I switched, bubble appears not above the Game Objects but it appears in fixed position in screen.
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: How Can I change Cancel Subtitle Input's option?

Post by Tony Li »

Lee
Posts: 6
Joined: Mon Jan 22, 2024 10:02 am

Re: How Can I change Cancel Subtitle Input's option?

Post by Lee »

I did it!! :D :D
Very Thank you for your help. (__)
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: How Can I change Cancel Subtitle Input's option?

Post by Tony Li »

Glad to help!
Post Reply