Currently, the clicks on the buttons are really complex: at each button an id is associated, which is associated to a specific menu.
The button returns the id (and some optional arguments), and then the active scene reads the id to know which statements should be executed, using eventually the optional arguments if necessary.
This PR replaces this whole system by simply attach a callback to each button.
This callback is executed on click, and that's it.
Currently, the clicks on the buttons are really complex: at each button an id is associated, which is associated to a specific menu. The button returns the id (and some optional arguments), and then the active scene reads the id to know which statements should be executed, using eventually the optional arguments if necessary.
This PR replaces this whole system by simply attach a callback to each button. This callback is executed on click, and that's it.