DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Init()

override Widget LoginScreenBase::Init ( )
inlineprivate

См. определение в файле DayZGame.c строка 230

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"));
237 m_txtDescription.Show(true);
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 }
DayZGame g_Game
Определения DayZGame.c:3942
TextWidget m_txtLabel
Определения DayZGame.c:208
TextWidget m_txtDescription
Определения DayZGame.c:207
ButtonWidget m_btnLeave
Определения DayZGame.c:209
EInputDeviceType
Определения input.c:3

Перекрестные ссылки g_Game, InputUtils::GetRichtextButtonIconFromInputAction(), InputUtils::ICON_SCALE_TOOLBAR, m_btnLeave, m_txtDescription и m_txtLabel.