231 {
232 layoutRoot =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/dialog_login_time.layout");
233
234 m_txtDescription = TextWidget.Cast(layoutRoot.FindAnyWidget(
"txtDescription"));
235 m_txtLabel = TextWidget.Cast(layoutRoot.FindAnyWidget(
"txtLabel"));
236 m_btnLeave = ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"btnLeave"));
238 layoutRoot.FindAnyWidget("notification_root").Show(false);
239
240 #ifdef PLATFORM_CONSOLE
241 bool showToolbar = !
g_Game.GetInput().IsEnabledMouseAndKeyboardEvenOnServer() ||
g_Game.GetInput().GetCurrentInputDevice() ==
EInputDeviceType.CONTROLLER;
242 layoutRoot.FindAnyWidget("toolbar_bg").Show(showToolbar);
243 RichTextWidget toolbar_b = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
244 toolbar_b.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
245 #ifdef PLATFORM_XBOX
246 #ifdef BUILD_EXPERIMENTAL
247 layoutRoot.FindAnyWidget("notification_root").Show(true);
248 #endif
249 #endif
250 #endif
251
252 return layoutRoot;
253 }
TextWidget m_txtDescription