I have all narration displayed in a designated Menu (when speech plays, narration only).
Whenever this window closes, I'd like the controls to change depending on whether there is another menu visible that the game turns to, or if it turns back to standard gameplay.
At the moment I have an ever-expanding list of separate is-menu-visible-checks to do this, but I wonder if I could handle it more elegantly. I realize I'd need to script this, since even if I could use something like "check if any menu is visible" this would also include the narration menu that I'm just closing (I suppose).
Ideas?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
You can check if a given Menu is currently on with:
To iterate through all Menus (excluding Narration):
To make such a check only when your narration menu is turned off, hook into the OnMenuTurnOff custom event:
Alternatively, if you want to run code when re-entering gameplay, you can hook into the OnEnterGameState event.