Page 1 of 1

Is there a way to highlight different responses through key press?

Posted: Sat Jul 13, 2019 10:09 am
by Bfox
Hello,

Is there a way to highlight the dialogue responses through certain key presses and then confirm with another?

For example:
Key press Y = option 1 (yes)
Key press N = option 2 (no)
Key Press R = option 3 (Repeat dialogue)
Key press Return = Confirm

Thanks for any help!

Re: Is there a way to highlight different responses through key press?

Posted: Sat Jul 13, 2019 2:03 pm
by Tony Li
Hi,

There's nothing specifically built into the Dialogue System for that, but you can copy the UIButtonKeyTrigger script (in Plugins / Pixel Crushers / Common / Scripts) to a new script. Instead of invoking the Button component's onClick() event, you can use UITools.Select() to select it.