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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Bfox
Posts: 1
Joined: Sat Jul 13, 2019 10:00 am

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

Post 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!
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
Post Reply