7 proto native
void EnterServerBrowser(
UIMenuPanel parentMenu);
12 proto native
Widget GetWidgetUnderCursor();
13 proto native
bool IsDialogVisible();
14 proto native
bool IsModalVisible();
15 proto native
void CloseSpecificDialog(
int id);
16 proto native
void CloseDialog();
17 proto native
void HideDialog();
43 proto native
void ShowDialog(
string caption,
string text,
int id,
int butts ,
int def,
int type ,
UIScriptedMenu handler);
45 proto native
bool ShowCursor(
bool visible);
46 proto native
bool IsCursorVisible();
47 proto native
bool IsDialogQueued();
48 proto native
bool ShowQueuedDialog();
49 proto native
int GetLoginQueuePosition();
50 proto native
bool ScreenFadeVisible();
51 proto native
void ScreenFadeIn(
float duration,
string text,
int backgroundColor,
int textColor);
52 proto native
void ScreenFadeOut(
float duration);
53 proto native
bool IsScaledMode();
54 proto native
void SetScaledMode(
bool enabled);
62 if (IsDialogVisible() ==
false)
81 if (menu.GetParentMenu())
83 menu = menu.GetParentMenu();
96 bool CloseAllSubmenus()
100 while (menu && menu.GetParentMenu() && menu.GetParentMenu().GetParentMenu())
102 menu = menu.GetParentMenu();
105 if (menu && menu.GetParentMenu())
115 bool CloseMenu(
int id)
121 if (menu.GetID() ==
id)
127 menu = menu.GetParentMenu();
133 bool HideMenu(
int id)
139 if (menu.GetID() ==
id)
141 HideScriptedMenu( menu );
152 bool IsMenuOpen(
int id)
154 return FindMenu(
id) !=
null;
164 if (menu.GetID() ==
id)
176 void OpenWindow(
int id )
192 window =
GetGame().GetMission().CreateScriptedWindow(
id );
207 void CloseWindow(
int id )
232 bool IsWindowOpened(
int id )
242 void ShowUICursor(
bool visible )
244 g_Game.SetMouseCursorDesiredVisibility(visible);
251 const string images[] = {
"{655A1BF79F5B291}Gui/textures/loading_screens/loading_screen_1_co.edds",
"{84BE5F7442BD4B}Gui/textures/loading_screens/loading_screen_2_co.edds"};
253 int index =
Math.RandomInt(0, 100) % 2;
254 return images[index];