8 g_Game.SetGameState(DayZGameState.MAIN_MENU);
9 g_Game.SetLoadState(DayZLoadState.MAIN_MENU_START);
20 MissionMainMenu
mission = MissionMainMenu.Cast(
g_Game.GetMission());
26 string text =
Widget.TranslateString(
"#console_start_game");
31 m_TextPress.SetText(
string.Format(text,
"<image set=\"xbox_buttons\" name=\"A\" />"));
33 m_TextPress.SetText(
string.Format(text,
"<image set=\"xbox_buttons\" name=\"A\" />"));
37 string confirm =
"cross";
46 m_TextPress.SetText(
string.Format(text,
"<image set=\"playstation_buttons\" name=\"" + confirm +
"\" />"));
54 if (
g_Game.GetGameState() != DayZGameState.CONNECTING)
56 #ifdef PLATFORM_CONSOLE
60 layoutRoot.FindAnyWidget(
"notification_root").Show(
false);
62 #ifdef PLATFORM_CONSOLE
64 #ifdef BUILD_EXPERIMENTAL
65 layoutRoot.FindAnyWidget(
"notification_root").Show(
true);
74 layoutRoot.FindAnyWidget(
"notification_root").Show(
false);
77 override void Update(
float timeslice)
79 super.Update(timeslice);
81 if (
GetUApi().GetInputByID(UAUISelect).LocalPress())
83 #ifdef PLATFORM_WINDOWS
proto native BiosUser GetSelectedUser()
Returns the currently selected user.
proto native BiosUserManager GetUserManager()
proto native WorkspaceWidget GetWorkspace()
proto void GetPlayerName(out string name)
Gets current player name.
proto native CGame GetGame()