I have a critical bug on OUYA where the game loses focus of menus if the player accidentally opens the options menu or inventories during a dialog from dialogue system
right now, i have a menu appearing with a toggle key.
I want to disable the menu from appearing if the game isn't in the normal state. i.e if it's in cutscene or in dialogue mode, it shouldn't open the inventory. I can't seem a way to do it from the interefrace and don't know if there's a hook for it in the code.
I'd love some help on how to overcome this, it's preventing the game from being able to be released on that platform.
Thanks!
Comments
A feature new to v1.51 is the ability to call custom events. There is one such event called whenever the gameState changes. You could feasibly write a function that locks these Menus when exiting normal gameplay, and unlocks them when entering it.