Author Topic: Using 'Cancel' key  (Read 2431 times)

Sundaerae

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 9
    • View Profile
Using 'Cancel' key
« on: March 04, 2015, 06:34:47 AM »
How do I use it?
As far as I know, Submit is tied to 'On Click' in Event Trigger and 'Select on Click' on UIKeyNavigation. But there is no trigger for 'Cancel'.
Example: If I'm on save menu then I want to quit, I press the 'Cancel' button, then a confirmation pop up appears "Do you want to continue without saving?" and 2 button Yes/No. How do I achieve this?

*If this was 'Submit' button, I can just use the 'confirmation pop up' panel as target for 'Select on Click' on UIKeyNavigation, add Event Trigger on that panel to show itself, then be done with it.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Using 'Cancel' key
« Reply #1 on: March 05, 2015, 09:54:52 PM »
You can directly bind buttons to keys by using UIKeyBinding. This will give you both a visual button, as well as a button bound to a controller button.