7 proto native
void EnterServerBrowser(
UIMenuPanel parentMenu);
12 proto native Widget GetWidgetUnderCursor();
13 proto native
bool IsDialogVisible();
15 proto native
bool IsDialogHiding();
16 proto native
bool IsModalVisible();
17 proto native
void CloseSpecificDialog(
int id);
18 proto native
void CloseDialog();
19 proto native
void HideDialog();
45 proto native
void ShowDialog(
string caption,
string text,
int id,
int butts ,
int def,
int type ,
UIScriptedMenu handler);
47 proto native
bool ShowCursor(
bool visible);
48 proto native
bool IsCursorVisible();
49 proto native
bool IsDialogQueued();
50 proto native
bool ShowQueuedDialog();
51 proto native
int GetLoginQueuePosition();
52 proto native
bool ScreenFadeVisible();
53 proto native
void ScreenFadeIn(
float duration,
string text,
int backgroundColor,
int textColor);
54 proto native
void ScreenFadeOut(
float duration);
55 proto native
bool IsScaledMode();
56 proto native
void SetScaledMode(
bool enabled);
64 if (IsDialogVisible() ==
false)
83 if (menu.GetParentMenu())
85 menu = menu.GetParentMenu();
98 bool CloseAllSubmenus()
102 while (menu && menu.GetParentMenu() && menu.GetParentMenu().GetParentMenu())
104 menu = menu.GetParentMenu();
107 if (menu && menu.GetParentMenu())
117 bool CloseMenu(
int id)
123 if (menu.GetID() ==
id)
129 menu = menu.GetParentMenu();
135 bool HideMenu(
int id)
141 if (menu.GetID() ==
id)
143 HideScriptedMenu( menu );
154 bool IsMenuOpen(
int id)
156 return FindMenu(
id) != null;
166 if (menu.GetID() ==
id)
178 void OpenWindow(
int id )
194 window =
GetGame().GetMission().CreateScriptedWindow(
id );
209 void CloseWindow(
int id )
234 bool IsWindowOpened(
int id )
244 void ShowUICursor(
bool visible )
246 g_Game.SetMouseCursorDesiredVisibility(visible);