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

◆ IsCurrentUIPageValid()

bool PluginBase::IsCurrentUIPageValid ( int ui_page_request)
inlineprotected

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

305 {
306 int ui_page_current = MENU_NONE;
307
308 if ( GetGame().GetUIManager().GetMenu() )
309 {
310 ui_page_current = GetGame().GetUIManager().GetMenu().GetID();
311 }
312
313 if ( ui_page_current < MENU_ANY || !CheckMask( ui_page_request, ui_page_current ) )
314 {
315 if ( CheckMask( ui_page_request, MENU_NONE ) || !CheckMask( ui_page_request, MENU_ANY ) )
316 {
317 return false;
318 }
319 }
320
321 return true;
322 }
proto native UIManager GetUIManager()
bool CheckMask(int source_mask, int target_mask)
Определения PluginKeyBinding.c:324
proto native UIScriptedMenu GetMenu()
Returns most-top open menu.
proto native CGame GetGame()
const int MENU_NONE
Определения constants.c:171
const int MENU_ANY
Определения constants.c:170

Перекрестные ссылки CheckMask(), GetGame(), UIManager::GetMenu(), CGame::GetUIManager(), MENU_ANY и MENU_NONE.

Используется в OnKeyPress() и OnMouse().