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)
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];
string GetRandomLoadingBackground()
Returns random loading background texture path.
override ScriptCallQueue GetCallQueue(int call_category)
proto native Mission GetMission()
UIScriptedWindow CreateScriptedWindow(int id)
proto void Call(func fn, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
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 IsDialogHiding()
Returns true for a single frame whenever a dialog is hidden.
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].