I would like to create a separate widget with “confirm” and “decline”. Which will be created by any buttons pressed that would require such a confirmation, such as when a player presses “new game”.
I created the confirmation widget along with buttons, but I don’t know how to communicate the player’s choice back to the main menu widget.
You’re looking for an Event Dispatcher. A native button already has one (more than one, actually). For a menu that creates a pop-up prompt that reports back to its creator, you could hook it up like so:
I’m running into this same problem, I tried to view the image you posted but it looks like it’s no longer valid. Do you still have a link to that screenshot?
when the user presses OPTIONS a new options menu with OK and CANCEL buttons pops up
we register the button clicks of the new options menu with events in the wMain
if any of those buttons are clicked, wMain will fire the appropriate event, (replace Print Strings with what you need to happen) and the menu gets closed
The above can be made better / cleaner with a custom event dispatcher.