19 enum ScriptMenuPresetEnum
26 proto native MenuBase OpenMenu(ScriptMenuPresetEnum preset,
int userId = 0,
bool unique =
false);
27 proto native MenuBase OpenDialog(ScriptMenuPresetEnum preset,
int priority = DialogPriority.INFORMATIVE,
int iUserId = 0,
bool unique =
false);
28 proto native MenuBase FindMenuByPreset(ScriptMenuPresetEnum preset);
29 proto native MenuBase FindMenuByUserId(
int userId);
30 proto native MenuBase GetTopMenu();
32 proto native
bool IsAnyMenuOpen();
33 proto native
bool IsAnyDialogOpen();
35 proto native
bool CloseMenuByPreset(ScriptMenuPresetEnum preset);
36 proto native
bool CloseMenuByUserId(
int userId);
37 proto native
bool CloseMenu(MenuBase menu);
39 protected void MenuManager();
40 protected void ~MenuManager();
43 class MenuBindAttribute
45 string m_MenuItemName;
47 void MenuBindAttribute(
string menuItemName =
"")
49 m_MenuItemName = menuItemName;
55 proto native
int GetUserId();
56 proto native
Widget GetRootWidget();
57 proto external MenuBase BindItem(
string menuItemName,
func callback);
58 proto native MenuBase SetLabel(
string menuItemName,
string text);
59 proto native
Widget GetItemWidget(
string menuItemName);
60 proto native MenuManager GetManager();
61 proto native
void Close();
63 void OnMenuFocusGained() {}
64 void OnMenuFocusLost() {}
70 void OnMenuUpdate(
float tDelta) {}
71 void OnMenuItem(
string menuItemName,
bool changed,
bool finished) {}
73 protected void MenuBase();
74 protected void ~MenuBase();
77 class MessageBox: MenuBase
86 #ifdef PLATFORM_WINDOWS
87 class WorldEditorIngame: MenuBase
89 proto native
bool LoadWorld(
string worldFilePath);
90 proto native
bool SaveWorld();