I found in selectable windows you can do:
if (Input.isTriggered("ok")) { // Custom jazz here ... }I make great use of this in Currencies and In Laws script. But what I find is you cannot do:
if (Input.isTriggered("cancel")) { // Custom jazz here ... }because if you have this called in the scene's update that takes precedent over the windows update method and thus the command is never triggered.
So....
I currently have it so that in a single scene you have two selectable windows, one allows you to select items, you hit enter, the other becomes active allowing you to select items. But if you hit cancel (or esc) then instead of going back to the first window and making that window active, the scene is closed.
So my question is:
How do I make the window's input take precedent over the scenes update when a user hits esc or cancel?
if (Input.isTriggered("ok")) { // Custom jazz here ... }I make great use of this in Currencies and In Laws script. But what I find is you cannot do:
if (Input.isTriggered("cancel")) { // Custom jazz here ... }because if you have this called in the scene's update that takes precedent over the windows update method and thus the command is never triggered.
So....
I currently have it so that in a single scene you have two selectable windows, one allows you to select items, you hit enter, the other becomes active allowing you to select items. But if you hit cancel (or esc) then instead of going back to the first window and making that window active, the scene is closed.
So my question is:
How do I make the window's input take precedent over the scenes update when a user hits esc or cancel?