81 if (
menu.GetParentMenu())
98 while (
menu &&
menu.GetParentMenu() &&
menu.GetParentMenu().GetParentMenu())
117 if (
menu.GetID() ==
id)
135 if (
menu.GetID() ==
id)
160 if (
menu.GetID() ==
id)
243 const string images[] = {
"{655A1BF79F5B291}Gui/textures/loading_screens/loading_screen_1_co.edds",
"{84BE5F7442BD4B}Gui/textures/loading_screens/loading_screen_2_co.edds"};
string GetRandomLoadingBackground()
Returns random loading background texture path.
void DeleteWindow(UIScriptedWindow window)
proto native bool IsScaledMode()
proto native void ShowDialog(string caption, string text, int id, int butts, int def, int type, UIScriptedMenu handler)
Shows message dialog.
proto native UIScriptedMenu GetMenu()
Returns most-top open menu.
proto native bool IsDialogVisible()
proto native bool IsModalVisible()
proto native void ScreenFadeOut(float duration)
proto native bool ShowCursor(bool visible)
natively checks game focus on cursor hiding
bool IsWindowOpened(int id)
proto native bool IsCursorVisible()
proto native void CloseSpecificDialog(int id)
bool CloseAllSubmenus()
Close all opened menus except first menu.
bool CloseMenu(int id)
Close menu with specific ID (see MenuID)
proto native bool ScreenFadeVisible()
proto native int GetLoginQueuePosition()
proto native UIScriptedMenu EnterScriptedMenu(int id, UIMenuPanel parent)
Create & open menu with specific id (see MenuID) and set its parent.
proto native void EnterServerBrowser(UIMenuPanel parentMenu)
void ShowUICursor(bool visible)
UIScriptedMenu FindMenu(int id)
Returns menu with specific ID if it is open (see MenuID)
proto native bool ShowQueuedDialog()
bool IsMenuOpen(int id)
Returns true if menu with specific ID is opened (see MenuID)
bool Back()
Close top window on windows stack, returns true when any window is closed.
bool CloseAll()
Close all opened menus.
proto native UIScriptedMenu CreateScriptedMenu(int id, UIMenuPanel parent)
proto native bool IsDialogQueued()
proto native Widget GetWidgetUnderCursor()
proto native void HideDialog()
proto native void CloseDialog()
proto native UIScriptedMenu ShowScriptedMenu(UIScriptedMenu menu, UIMenuPanel parent)
proto native void HideScriptedMenu(UIScriptedMenu menu)
proto native void SetScaledMode(bool enabled)
proto native void ScreenFadeIn(float duration, string text, int backgroundColor, int textColor)
static void RemoveFromActiveWindows(int id)
static UIScriptedWindow GetWindow(int id)
static void AddToActiveWindows(int id, UIScriptedWindow window)
proto native CGame GetGame()
static proto int Randomize(int seed)
Sets the seed for the random number generator.
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].