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

◆ Init()

void Init ( )

single position related to each particular attachment group

single position related to each particular attachment group

id is persistent until the parent of component is moved in world

pre-init arrays

Temporary hotfix for EOnPostSimulate/EOnFrame methods not beeing called on static objects

Make sure we are not overflow max. possible PIN code lenght

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

128 {
129 layoutRoot = g_Game.GetWorkspace().CreateWidgets("gui/layouts/dialog_queue_position.layout");
130 m_HintPanel = new UiHintPanelLoading(layoutRoot.FindAnyWidget("hint_frame0"));
131 m_txtPosition = TextWidget.Cast(layoutRoot.FindAnyWidget("txtPosition"));
132 m_txtNote = TextWidget.Cast(layoutRoot.FindAnyWidget("txtNote"));
133 m_btnLeave = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btnLeave"));
134 m_txtNote.Show(true);
135 layoutRoot.FindAnyWidget("notification_root").Show(false);
136
137 #ifdef PLATFORM_CONSOLE
138 bool showToolbar = !g_Game.GetInput().IsEnabledMouseAndKeyboardEvenOnServer() || g_Game.GetInput().GetCurrentInputDevice() == EInputDeviceType.CONTROLLER;
139 layoutRoot.FindAnyWidget("toolbar_bg").Show(showToolbar);
140 RichTextWidget toolbar_b = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
141 toolbar_b.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
142 Widget expNotification = layoutRoot.FindAnyWidget("notification_root");
143 bool isXBoxExperimental = false;
144 #ifdef PLATFORM_XBOX
145 #ifdef BUILD_EXPERIMENTAL
146 isXBoxExperimental = true;
147 #endif
148 #endif
149 #ifdef PLATFORM_MSSTORE
150 #ifdef BUILD_EXPERIMENTAL
151 isXBoxExperimental = true;
152 #endif
153 #endif
154 expNotification.Show(isXBoxExperimental);
155 #endif
156
157 return layoutRoot;
158 }
ref UiHintPanelLoading m_HintPanel
Определения DayZGame.c:724
DayZGame g_Game
Определения DayZGame.c:4074
ButtonWidget m_btnLeave
Определения DayZGame.c:114
class LoginScreenBase extends UIScriptedMenu m_txtPosition
TextWidget m_txtNote
Определения DayZGame.c:113
static string GetRichtextButtonIconFromInputAction(notnull UAInput pInput, string pLocalizedDescription, int pInputDeviceType=EUAINPUT_DEVICE_CONTROLLER, float pScale=ICON_SCALE_NORMAL, bool pVertical=false)
Определения InputUtils.c:167
static const float ICON_SCALE_TOOLBAR
Определения InputUtils.c:15
Определения InputUtils.c:2
Определения gameplay.c:317
Определения EnWidgets.c:220
Определения EnWidgets.c:190
EInputDeviceType
Определения input.c:3