Fix a few warnings and add a way to prevent the menu from opening
This modified the OnOpening callback so the user can return true/false to continue/abort the menu opening.
Edited by PabloMK7
This modified the OnOpening callback so the user can return true/false to continue/abort the menu opening.