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

◆ Init()

override Widget LoginScreenBase::Init ( )
inlineprivate

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

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"));
245 m_txtDescription.Show(true);
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 }
DayZGame g_Game
Определения DayZGame.c:4074
TextWidget m_txtLabel
Определения DayZGame.c:216
TextWidget m_txtDescription
Определения DayZGame.c:215
ButtonWidget m_btnLeave
Определения DayZGame.c:217
WorkspaceWidget Widget
Defined in code.
EInputDeviceType
Определения input.c:3

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