32 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/day_z_logout_dialog.layout");
34 m_LogoutTimeText =
TextWidget.Cast(layoutRoot.FindAnyWidget(
"txtLogoutTime"));
35 m_DescriptionText =
TextWidget.Cast(layoutRoot.FindAnyWidget(
"txtDescription"));
36 m_bLogoutNow =
ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"bLogoutNow"));
37 m_bCancel =
ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"bCancel"));
39#ifdef PLATFORM_CONSOLE
40 m_bCancel.Show(
false);
41 m_bLogoutNow.Show(
false);
43 layoutRoot.FindAnyWidget(
"toolbar_bg").Show(
true);
48 m_bLogoutNow.Show(
true);
49 layoutRoot.FindAnyWidget(
"toolbar_bg").Show(
false);
114 string text =
"#layout_logout_dialog_until_logout_";
118 if (m_FullTime.m_Days > 0)
120 else if (m_FullTime.m_Hours > 0)
122 else if (m_FullTime.m_Minutes > 0)
128 text =
string.Format(
text, m_FullTime.m_Seconds, m_FullTime.m_Minutes, m_FullTime.m_Hours, m_FullTime.m_Days);
129 m_LogoutTimeText.SetText(
text);