5 private ButtonWidget m_bCancel;
6 private ButtonWidget m_bCancelConsole;
19 GetGame().GetMission().AddActiveInputExcludes({
"menu"});
21 GetGame().GetMission().GetHud().ShowHudUI(
false);
22 GetGame().GetMission().GetHud().ShowQuickbarUI(
false);
30 GetGame().GetMission().RemoveActiveInputExcludes({
"menu"},
true);
32 GetGame().GetMission().GetHud().ShowHudUI(
true);
33 GetGame().GetMission().GetHud().ShowQuickbarUI(
true);
42 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/day_z_invite_dialog.layout");
44 m_LogoutTimeText =
TextWidget.Cast(layoutRoot.FindAnyWidget(
"txtLogoutTime"));
45 m_DescriptionText =
TextWidget.Cast(layoutRoot.FindAnyWidget(
"txtDescription"));
46 m_bCancel = ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"bCancel"));
50 if (player && player.GetEmoteManager() && !player.IsRestrained() && !player.IsUnconscious())
52 player.GetEmoteManager().CreateEmoteCBFromMenu(
EmoteConstants.ID_EMOTE_SITA);
53 player.GetEmoteManager().GetEmoteLauncher().SetForced(
EmoteLauncher.FORCE_DIFFERENT);
70 override void Update(
float timeslice)
72 if (
GetUApi().GetInputByID(UAUIBack).LocalPress())
87 super.OnClick(w,
x,
y, button);
101 string text =
"#layout_logout_dialog_until_logout_";
103 TimeConversions.ConvertSecondsToFullTime(time, m_FullTime);
105 if (m_FullTime.m_Days > 0)
107 else if (m_FullTime.m_Hours > 0)
109 else if (m_FullTime.m_Minutes > 0)
114 text =
Widget.TranslateString(text);
115 text =
string.Format(text, m_FullTime.m_Seconds, m_FullTime.m_Minutes, m_FullTime.m_Hours, m_FullTime.m_Days);
116 m_LogoutTimeText.SetText(text);
132 g_Game.SetGameState(DayZGameState.IN_GAME);
133 g_Game.SetLoadState(DayZLoadState.CONNECT_CONTROLLER_SELECT);
139 #ifdef PLATFORM_CONSOLE
153 string context =
string.Format(
" %1",
InputUtils.GetRichtextButtonIconFromInputAction(
"UAUIBack",
"#dialog_cancel", EUAINPUT_DEVICE_CONTROLLER,
InputUtils.ICON_SCALE_TOOLBAR));
155 toolbarText.SetText(context);
160 bool toolbarShow =
false;
161 #ifdef PLATFORM_CONSOLE
165 layoutRoot.FindAnyWidget(
"BottomConsoleToolbar").Show(toolbarShow);
166 m_bCancel.Show(!toolbarShow);