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

◆ Init() [6/6]

void ScriptedWidgetEventHandler::Init ( Widget layoutRoot,
bool builtIn = false )
inlineprivate

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

29 {
30 m_builtIn = builtIn;
32 {
33 m_context_menu_root_widget = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_inventory_context_menu.layout", layoutRoot);
34 m_context_menu_panel_widget = m_context_menu_root_widget.FindAnyWidget("PanelWidget");
36 m_context_menu_root_widget.SetHandler(this);
37 }
38 }
proto native WorkspaceWidget GetWorkspace()
Widget m_context_menu_root_widget
Определения ContextMenu.c:6
bool m_builtIn
Определения ContextMenu.c:11
Widget m_context_menu_panel_widget
Определения ContextMenu.c:7
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(), CGame::GetWorkspace(), m_builtIn, m_context_menu_panel_widget и m_context_menu_root_widget.