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

◆ Init()

override Widget WarningMenuBase::Init ( )
inlineprotected

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

32 {
33 layoutRoot = GetGame().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 (GetGame().GetMission())
42 {
45 }
46
47 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
48
49 return layoutRoot;
50 }
proto native WorkspaceWidget GetWorkspace()
proto native Mission GetMission()
ScriptInvoker GetOnInputDeviceChanged()
Определения gameplay.c:851
ScriptInvoker GetOnInputPresetChanged()
Определения gameplay.c:859
proto bool Insert(func fn, int flags=EScriptInvokerInsertFlags.IMMEDIATE)
insert method to list
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
proto native CGame GetGame()
proto native external Widget CreateWidgets(string layout, Widget parentWidget=NULL, bool immedUpdate=true)
Create widgets from *.layout file.
WorkspaceWidget Widget
Defined in code.

Перекрестные ссылки WorkspaceWidget::CreateWidgets(), GetGame(), CGame::GetMission(), Mission::GetOnInputDeviceChanged(), Mission::GetOnInputPresetChanged(), GetText(), CGame::GetWorkspace(), ScriptInvoker::Insert(), m_Description, m_OkButton, OnInputDeviceChanged() и OnInputPresetChanged().