55 proto native
void ScreenFadeIn(
float duration,
string text,
int backgroundColor,
int textColor);
124 {
if (menu.
GetID() ==
id)
142 if (menu.GetID() ==
id)
167 if (menu.GetID() ==
id)
255 const string images[] = {
"{655A1BF79F5B291}Gui/textures/loading_screens/loading_screen_1_co.edds",
"{84BE5F7442BD4B}Gui/textures/loading_screens/loading_screen_2_co.edds"};
258 return images[index];
string GetRandomLoadingBackground()
Returns random loading background texture path.
proto native Mission GetMission()
override ScriptCallQueue GetCallQueue(int call_category)
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 ...
proto native bool ShowQueuedDialog()
bool CloseAllSubmenus()
Close all opened menus except first menu.
void DeleteWindow(UIScriptedWindow window)
UIScriptedMenu CreateScriptedMenu(int id, UIMenuPanel parent)
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)
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()
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)
proto native CGame GetGame()
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.