Enfusion Script API
|
Public Member Functions | |
void | Ok () |
![]() | |
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) |
void MessageBox.Ok | ( | ) |