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

◆ Init()

override Widget Init ( )
protected

Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)

whole body slots

upper body part slots

bottom body part slots

lower body part slots


heat comfort related slots

pre-init arrays

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

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

324 {
325 layoutRoot = g_Game.GetWorkspace().CreateWidgets("gui/layouts/xbox/control_mapping_info_screen.layout");
326
327 layoutRoot.FindAnyWidget("Tabber").GetScript(m_TabScript);
328
329 m_TabScript.m_OnTabSwitch.Insert(DrawConnectingLines);
330
331 m_Back = ButtonWidget.Cast(layoutRoot.FindAnyWidget("back"));
332
333 #ifdef PLATFORM_CONSOLE
334 RichTextWidget toolbar_switch = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ChangePresetIcon"));
335 RichTextWidget toolbar_back = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
336 toolbar_switch.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UASwitchPreset", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
337 toolbar_back.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
338 #endif
339
340 #ifdef PLATFORM_XBOX
341 layoutRoot.FindAnyWidget("XboxControlsImage").Show(true);
342 #else
343 #ifdef PLATFORM_PS4
344 layoutRoot.FindAnyWidget("PSControlsImage").Show(true);
345 #endif
346 #endif
347
348 m_tab_images[0] = ImageWidget.Cast(layoutRoot.FindAnyWidget("MovementTabBackdropImageWidget"));
349 m_tab_images[1] = ImageWidget.Cast(layoutRoot.FindAnyWidget("WeaponsAndActionsBackdropImageWidget"));
350 m_tab_images[2] = ImageWidget.Cast(layoutRoot.FindAnyWidget("InventoryTabBackdropImageWidget"));
351 m_tab_images[3] = ImageWidget.Cast(layoutRoot.FindAnyWidget("MenusTabBackdropImageWidget"));
352
353 PPERequester_MenuEffects requester;
354 Class.CastTo(requester,PPERequesterBank.GetRequester(PPERequesterBank.REQ_MENUEFFECTS));
355 requester.SetVignetteIntensity(0.6);
356
358
359 return layoutRoot;
360 }
void DrawConnectingLines(int index)
Определения ControlsXbox.c:41
TabberUI m_TabScript
Определения ControlsXbox.c:21
ButtonWidget m_Back
Определения ControlsXbox.c:17
ImageWidget m_tab_images[TABS_COUNT]
Определения ControlsXbox.c:20
DayZGame g_Game
Определения DayZGame.c:3942
Super root of all classes in Enforce script.
Определения EnScript.c:11
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
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo(), DrawConnectingLines(), UIScriptedMenu::DrawConnectingLines(), g_Game, InputUtils::GetRichtextButtonIconFromInputAction(), InputUtils::ICON_SCALE_TOOLBAR, m_Back, m_tab_images и m_TabScript.