Page 1 of 1
How Can I change Cancel Subtitle Input's option?
Posted: Mon Jan 22, 2024 10:27 am
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
Re: How Can I change Cancel Subtitle Input's option?
Posted: Mon Jan 22, 2024 11:50 am
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:
Re: How Can I change Cancel Subtitle Input's option?
Posted: Tue Jan 23, 2024 3:58 am
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.
Re: How Can I change Cancel Subtitle Input's option?
Posted: Tue Jan 23, 2024 9:32 am
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.
Re: How Can I change Cancel Subtitle Input's option?
Posted: Wed Jan 24, 2024 1:47 am
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.
Re: How Can I change Cancel Subtitle Input's option?
Posted: Wed Jan 24, 2024 8:41 am
by Tony Li
Re: How Can I change Cancel Subtitle Input's option?
Posted: Wed Jan 24, 2024 10:40 am
by Lee
I did it!!
Very Thank you for your help. (__)
Re: How Can I change Cancel Subtitle Input's option?
Posted: Wed Jan 24, 2024 10:52 am
by Tony Li
Glad to help!