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

◆ Init()

override Widget LoginScreenBase::Init ( )
inlineprivate

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

230 {
231 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/dialog_login_time.layout");
232
233 m_txtDescription = TextWidget.Cast(layoutRoot.FindAnyWidget("txtDescription"));
234 m_txtLabel = TextWidget.Cast(layoutRoot.FindAnyWidget("txtLabel"));
235 m_btnLeave = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btnLeave"));
236 m_txtDescription.Show(true);
237 layoutRoot.FindAnyWidget("notification_root").Show(false);
238
239 #ifdef PLATFORM_CONSOLE
240 layoutRoot.FindAnyWidget("toolbar_bg").Show(true);
241 RichTextWidget toolbar_b = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
242 toolbar_b.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
243 #ifdef PLATFORM_XBOX
244 #ifdef BUILD_EXPERIMENTAL
245 layoutRoot.FindAnyWidget("notification_root").Show(true);
246 #endif
247 #endif
248 #endif
249
250 return layoutRoot;
251 }
proto native WorkspaceWidget GetWorkspace()
TextWidget m_txtLabel
Определения DayZGame.c:207
TextWidget m_txtDescription
Определения DayZGame.c:206
ButtonWidget m_btnLeave
Определения DayZGame.c:208
proto native CGame GetGame()
proto native external Widget CreateWidgets(string layout, Widget parentWidget=NULL, bool immedUpdate=true)
Create widgets from *.layout file.

Перекрестные ссылки WorkspaceWidget::CreateWidgets(), GetGame(), InputUtils::GetRichtextButtonIconFromInputAction(), CGame::GetWorkspace(), InputUtils::ICON_SCALE_TOOLBAR, m_btnLeave, m_txtDescription и m_txtLabel.