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

◆ OnClick() [28/28]

override bool UIScriptedMenu::OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate

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

26 {
27 super.OnClick(w, x, y, button);
28
29 if (w.GetUserID() == IDC_OK)
30 {
31 UIScriptedMenu consoleMenu = GetGame().GetUIManager().FindMenu(MENU_SCRIPTCONSOLE);
32 if (consoleMenu != null)
33 {
34 ScriptConsole scriptedConsole = ScriptConsole.Cast(consoleMenu);
35 ScriptConsoleItemsTab tab = ScriptConsoleItemsTab.Cast(scriptedConsole.GetTabHandler(ScriptConsoleItemsTab));
36 if (tab)
37 {
38 Close();
39 return true;
40 }
41 }
42 }
43
44 return false;
45 }
Icon x
Icon y
void Close()
proto native UIManager GetUIManager()
UIScriptedMenu FindMenu(int id)
Returns menu with specific ID if it is open (see MenuID)
Определения UIManager.c:160
void ScriptConsole()
Определения ScriptConsole.c:37
proto native CGame GetGame()
const int MENU_SCRIPTCONSOLE
Определения constants.c:185
const int IDC_OK
Определения constants.c:135

Перекрестные ссылки Close(), UIManager::FindMenu(), GetGame(), CGame::GetUIManager(), IDC_OK, MENU_SCRIPTCONSOLE, ScriptConsole(), x и y.