You could instead have the enumerator inside each button → clicking a button tells the Game Mode what to do. In a more elaborate scenario:
- a widget with just a button:
Use those widgets instead of regular buttons . As a bonus it’s now trivial to decorate the entire menu in one go rather than chase down 54 buttons in 6 submenus and update them one by one…
- when you add the custom buttons to the menu, you can configure them to spit out specific data:
- which the Game Mode can then process much more easily:
Now you have all the buttons of this menu report to the same Event in the game mode. Each button with a mind of its own. Consider it once things get too convoluted to handle.