Base class for menus in menu manager order callbacks call: opening: 1) OnMenuInit - called during load, when MenuManager loading menus config 2) OnMenuOpen - called when menu is beeing open 3) OnMenuShow 4) OnMenuFocusGained 5) OnMenuOpened - called after menu is opened and is ready.
More...
|
proto external int | GetUserData () |
| Returns user id uint, set on menu opening.
|
|
proto external MenuManager | GetManager () |
|
proto external Widget | GetRootWidget () |
|
proto external Widget | GetItemWidget (string menuItemName) |
| Returns pointer to widget associated with MenuItem (defined in menu config). If there is no MenuItem with given name, or there is no widget associated to it, returns nullptr.
|
|
proto external MenuBase | SetLabel (string menuItemName, string text) |
| Sets text to widget associated with MenuItem (works only with text containing widgets like ButtonWidget, TextWidget, MultilineTextWidget, RichTextWidget, on other widgets do nothing)
|
|
proto external void | Close () |
| Put menu into queue for closing (which is processed during next MenuManeger update)
|
|
proto external bool | IsFocused () |
|
proto external bool | IsOpen () |
|
proto external bool | AddMenuItem (string menuItemName, Widget w, string actionName) |
|
proto external bool | RemoveMenuItem (string menuItemName) |
|
proto external void | SetActionContext (string actionContextName) |
|
proto MenuBase | BindItem (string menuItemName, MenuItemCallback callback) |
| Registers MenuItem callback.
|
|
void | OnMenuFocusGained () |
|
void | OnMenuFocusLost () |
|
void | OnMenuShow () |
|
void | OnMenuHide () |
|
void | OnMenuOpen () |
|
void | OnMenuOpened () |
|
void | OnMenuClose () |
|
void | OnMenuInit () |
|
void | OnMenuUpdate (float tDelta) |
|
void | OnMenuItem (string menuItemName, bool changed, bool finished) |
|
Base class for menus in menu manager order callbacks call: opening: 1) OnMenuInit - called during load, when MenuManager loading menus config 2) OnMenuOpen - called when menu is beeing open 3) OnMenuShow 4) OnMenuFocusGained 5) OnMenuOpened - called after menu is opened and is ready.
loop: OnMenuUpdate OnMenuItem
closing: 1) OnMenuFocusLost - called when menu is closed or other menu/dialog going to overlap the menu 2) OnMenuHide 3) OnMenuClose