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