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

◆ Init()

override Widget WarningMenuBase::Init ( )
inlineprotected

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

32 {
33 layoutRoot = g_Game.GetWorkspace().CreateWidgets("gui/layouts/day_z_dropped_items.layout");
34 m_OkButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("bOK"));
35 m_Description = MultilineTextWidget.Cast(layoutRoot.FindAnyWidget("txtDescription"));
36 m_Description.Show(true);
37
38 string text = Widget.TranslateString(GetText());
39 m_Description.SetText(text);
40
41 if (g_Game.GetMission())
42 {
43 g_Game.GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
44 g_Game.GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
45 }
46
47 OnInputDeviceChanged(g_Game.GetInput().GetCurrentInputDevice());
48
49 return layoutRoot;
50 }
DayZGame g_Game
Определения DayZGame.c:3942
void OnInputPresetChanged()
Определения ItemDropWarningMenu.c:80
MultilineTextWidget m_Description
Определения ItemDropWarningMenu.c:4
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
Определения ItemDropWarningMenu.c:87
string GetText()
Определения ItemDropWarningMenu.c:52
ButtonWidget m_OkButton
Определения ItemDropWarningMenu.c:3
WorkspaceWidget Widget
Defined in code.

Перекрестные ссылки g_Game, GetText(), m_Description, m_OkButton, OnInputDeviceChanged() и OnInputPresetChanged().