8 g_Game.SetGameState(DayZGameState.MAIN_MENU);
9 g_Game.SetLoadState(DayZLoadState.MAIN_MENU_START);
12 void ~TitleScreenMenu()
18 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/xbox/day_z_title_screen.layout");
20 MissionMainMenu
mission = MissionMainMenu.Cast(
g_Game.GetMission());
22 m_TextPress =
RichTextWidget.Cast(layoutRoot.FindAnyWidget(
"InputPromptText"));
26 string text =
Widget.TranslateString(
"#console_start_game");
27 GetGame().GetPlayerName(gamertag);
30 if (user_manager && user_manager.GetSelectedUser())
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);
69 SetWidgetAnimAlpha(m_TextPress);
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