55 m_Play = layoutRoot.FindAnyWidget(
"play");
58 m_PlayVideo = layoutRoot.FindAnyWidget(
"play_video");
59 m_Feedback = layoutRoot.FindAnyWidget(
"feedback_button");
60 m_Tutorials = layoutRoot.FindAnyWidget(
"tutorials");
64 m_Exit = layoutRoot.FindAnyWidget(
"exit_button");
68 m_DlcFrame = layoutRoot.FindAnyWidget(
"dlc_Frame");
82 m_Stats =
new MainMenuStats(layoutRoot.FindAnyWidget(
"character_stats_root"));
102 m_Version.SetText(
"#main_menu_version" +
" " + version);
116 g_Game.SetLoadState(DayZLoadState.MAIN_MENU_CONTROLLER_SELECT);
134 if (modArray.Count() > 0)
136 modArray.Remove(modArray.Count() - 1);
149 if (modArray.Count() > 0)
151 layoutRoot.FindAnyWidget(
"ModsSimple").Show(
true);
166 int count = modArray.Count();
168 for (
int i = count - 1; i > -1; i--)
196 for (
int i = 0; i < count; i++)
200 MainMenuDlcHandlerBase handler =
new MainMenuDlcHandlerBase(info,
m_DlcFrame, data);
202 handler.ShowInfoPanel(
true);
310 int charID =
m_ScenePC.GetIntroCharacter().GetCharacterID();
311 m_ScenePC.GetIntroCharacter().GetLastPlayedServer(charID, ip,
name, port);
394 m_Version.SetText(
"#main_menu_version" +
" " + version);
422 super.Update(timeslice);
426 if (!
GetGame().GetUIManager().IsDialogHiding())
435 if (!
g_Game.IsNewCharacter())
468 int charID =
m_ScenePC.GetIntroCharacter().GetNextCharacterID();
469 if (charID !=
m_ScenePC.GetIntroCharacter().GetCharacterID())
471 m_ScenePC.GetIntroCharacter().SetCharacterID(charID);
481 int charID =
m_ScenePC.GetIntroCharacter().GetPrevCharacterID();
482 if (charID !=
m_ScenePC.GetIntroCharacter().GetCharacterID())
484 m_ScenePC.GetIntroCharacter().SetCharacterID(charID);
494 int charID =
m_ScenePC.GetIntroCharacter().GetCharacterID();
495 if (create_character)
497 m_ScenePC.GetIntroCharacter().CreateNewCharacterById(charID);
507 if (
m_ScenePC.GetIntroCharacter().IsDefaultCharacter())
509 text.SetText(
"#layout_main_menu_customize_char");
513 text.SetText(
"#layout_main_menu_rename");
516 if (
m_ScenePC.GetIntroCharacter().GetCharacterObj())
518 if (
m_ScenePC.GetIntroCharacter().GetCharacterObj().IsMale())
551 GetGame().
OpenURL(
"https://feedback.bistudio.com/project/view/2/");
572 if (
g_Game.GetLastVisitedServer(ip, port))
589 int steamQueryPort = 0;
591 if (!
m_ScenePC.GetIntroCharacter().IsDefaultCharacter())
593 int charID =
m_ScenePC.GetIntroCharacter().GetCharacterID();
594 m_ScenePC.GetIntroCharacter().GetLastPlayedServerEx(charID, ip,
name, port, steamQueryPort);
599 g_Game.ConnectFromServerBrowserEx(ip, port, steamQueryPort,
"");
622 else if (code == 555)
636 int color_pnl =
ARGB(255, 0, 0, 0);
637 int color_lbl =
ARGB(255, 255, 0, 0);
638 int color_img =
ARGB(255, 200, 0, 0);
650 int color_pnl =
ARGB(0, 0, 0, 0);
651 int color_lbl =
ARGB(255, 255, 255, 255);
652 int color_img =
ARGB(255, 255, 255, 255);
678 Widget panel = w.FindWidget(w.GetName() +
"_panel");
682 panel.SetColor(color);
691 Widget panel = w.FindWidget(w.GetName() +
"_image");
695 panel.SetColor(color);
710 label.SetColor(color);
715 text.SetColor(color);
720 text2.SetColor(color);
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
proto native UIManager GetUIManager()
override ScriptCallQueue GetCallQueue(int call_category)
proto native void GetModInfos(notnull out array< ref ModInfo > modArray)
proto native WorkspaceWidget GetWorkspace()
proto void GetVersion(out string version)
proto native void OpenURL(string url)
proto native Mission GetMission()
static JsonDataDLCList GetData()
ScriptInvoker GetOnModMenuVisibilityChanged()
proto owned string GetName()
static void AutoConnectToEmptyServer()
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 void CallByName(Class obj, string fnName, Param params=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto bool Remove(func fn, int flags=EScriptInvokerRemoveFlags.ALL)
remove specific call from list
proto bool Insert(func fn, int flags=EScriptInvokerInsertFlags.IMMEDIATE)
insert method to list
proto native void ShowDialog(string caption, string text, int id, int butts, int def, int type, UIScriptedMenu handler)
Shows message dialog.
proto native void ScreenFadeOut(float duration)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
proto native int Length()
Returns length of string.
int ARGB(int a, int r, int g, int b)