85 version_widget.SetText(
"#main_menu_version" +
" " + version);
88 version_widget.SetText(
"THIS IS PREVIEW");
129 g_Game.RefreshCurrentServerInfo();
140 IngameHud hud = IngameHud.Cast(
mission.GetHud());
163 super.OnClick(w,
x,
y, button);
177 PluginDeveloper plugin = PluginDeveloper.GetInstance();
179 plugin.ToggleMissionLoader();
220 if (!
GetGame().IsMultiplayer())
234 if (player && player.IsUnconscious() && !player.IsDamageDestroyed())
264 super.OnModalResult(w,
x,
y, code, result);
277 g_Game.CancelLoginTimeCountdown();
282 g_Game.CancelLoginTimeCountdown();
302 super.Update(timeslice);
314 bool playerAlive = player && player.GetPlayerState() ==
EPlayerStates.ALIVE;
346 player.SimulateDeath(
true);
350 MissionGameplay missionGP = MissionGameplay.Cast(
GetGame().GetMission());
351 missionGP.DestroyAllMenus();
352 missionGP.SetPlayerRespawning(
true);
353 missionGP.Continue();
398 Widget panel = w.FindWidget(w.GetName() +
"_panel");
400 panel.SetColor(color);
407 label.SetColor(color);
417 GetGame().
OpenURL(
"https://feedback.bistudio.com/project/view/2/");
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
void UiHintPanel(Widget parent_widget)
proto native UIManager GetUIManager()
proto native void CopyToClipboard(string text)
override ScriptCallQueue GetCallQueue(int call_category)
proto native void LogoutRequestTime()
Logout methods.
proto native DayZPlayer GetPlayer()
proto native WorkspaceWidget GetWorkspace()
proto native void RespawnPlayer()
proto void GetVersion(out string version)
proto native void OpenURL(string url)
proto native Mission GetMission()
MenuDefaultCharacterData GetMenuDefaultCharacterData(bool fill_data=true)
static bool GetDisableRespawnInUnconsciousness()
static int COLOR_DISABLED_TEXT
GetServersResultRow the output structure of the GetServers operation that represents one game server.
static void GetCurrentServerInfo(string ip, int port)
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 void ShowDialog(string caption, string text, int id, int butts, int def, int type, UIScriptedMenu handler)
Shows message dialog.
proto native CGame GetGame()
const int DEFAULT_CHARACTER_MENU_ID
const int RESPAWN_MODE_CUSTOM
const int IDC_INT_RETRY
ingame menu
int ARGB(int a, int r, int g, int b)