239 {
240 layoutRoot =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/dialog_login_time.layout");
241
242 m_txtDescription = TextWidget.Cast(layoutRoot.FindAnyWidget(
"txtDescription"));
243 m_txtLabel = TextWidget.Cast(layoutRoot.FindAnyWidget(
"txtLabel"));
244 m_btnLeave = ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"btnLeave"));
246 layoutRoot.FindAnyWidget("notification_root").Show(false);
247
248 #ifdef PLATFORM_CONSOLE
249 bool showToolbar = !
g_Game.GetInput().IsEnabledMouseAndKeyboardEvenOnServer() ||
g_Game.GetInput().GetCurrentInputDevice() ==
EInputDeviceType.CONTROLLER;
250 layoutRoot.FindAnyWidget("toolbar_bg").Show(showToolbar);
251 RichTextWidget toolbar_b = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
252 toolbar_b.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
253 Widget expNotification = layoutRoot.FindAnyWidget(
"notification_root");
254 bool isXBoxExperimental = false;
255 #ifdef PLATFORM_XBOX
256 #ifdef BUILD_EXPERIMENTAL
257 isXBoxExperimental = true;
258 #endif
259 #endif
260 #ifdef PLATFORM_MSSTORE
261 #ifdef BUILD_EXPERIMENTAL
262 isXBoxExperimental = true;
263 #endif
264 #endif
265 expNotification.Show(isXBoxExperimental);
266 #endif
267
268 return layoutRoot;
269 }
TextWidget m_txtDescription