Continue dialogue on touch

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Pendergast
Posts: 38
Joined: Sun Oct 18, 2020 1:48 pm

Continue dialogue on touch

Post by Pendergast »

Hi again !

I was wondering while creating my own UI for Dialogue System (and setting up the continue button) ; is there any way to make it work for phone ? I want the dialog to continue when the player touches the phone's screen. Do i have to use the continue button and take off all the images and set the alpha to 0, or is there any other way to do so ?

Thank you in advance !
PENDERGAST / NyxNikita
Artist & Writer
Caroline I. Letuppe
🌿 Instagram: https://instagram.com/nyxnikita
🌿 Site officiel: https://nyxnikita.com
🌿 Boutique: https://shop.nyxnikita.com
🌿 Tous mes liens: https://nyxnikita.carrd.co/
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Continue dialogue on touch

Post by Tony Li »

You can add a script to continue -- call (DialogueManager.dialogueUI as StandardDialogueUI).OnContinue; -- but it's easiest to use the continue button. Make it cover the whole screen, and set the alpha to zero like you said.
User avatar
Pendergast
Posts: 38
Joined: Sun Oct 18, 2020 1:48 pm

Re: Continue dialogue on touch

Post by Pendergast »

Thank you, Tony !

Now that I think about it, I also have a small question regarding the alert panel !

I activated it during conversations and I'd like to prevent the alert window from disappearing when the player click on continue (and therefore let it disappear by itself, which it already does: but if I click on continue before it's completely disappeared, it disappears on this click, wich i want to deactivate.)
PENDERGAST / NyxNikita
Artist & Writer
Caroline I. Letuppe
🌿 Instagram: https://instagram.com/nyxnikita
🌿 Site officiel: https://nyxnikita.com
🌿 Boutique: https://shop.nyxnikita.com
🌿 Tous mes liens: https://nyxnikita.carrd.co/
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Continue dialogue on touch

Post by Tony Li »

Hi Caroline,


If your continue button has a Standard UI Continue Button Fast Forward component, untick 'Continue Alert Panel'.

If the continue button's OnClick() event instead calls the dialogue UI directly, change it from StandardDialogueUI.OnContinue to StandardDialogueUI.OnContinueConversation.
User avatar
Pendergast
Posts: 38
Joined: Sun Oct 18, 2020 1:48 pm

Re: Continue dialogue on touch

Post by Pendergast »

The first one worked, thank again, Tony !
PENDERGAST / NyxNikita
Artist & Writer
Caroline I. Letuppe
🌿 Instagram: https://instagram.com/nyxnikita
🌿 Site officiel: https://nyxnikita.com
🌿 Boutique: https://shop.nyxnikita.com
🌿 Tous mes liens: https://nyxnikita.carrd.co/
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Continue dialogue on touch

Post by Tony Li »

Happy to help!
Post Reply