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

◆ HandleMapToggleByKeyboardShortcut()

void MissionBase::HandleMapToggleByKeyboardShortcut ( Man player)
inlineprotected

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

1376 {
1377 UIManager um = GetGame().GetUIManager();
1378 if (um && !um.IsMenuOpen(MENU_MAP))
1379 {
1380 um.CloseAll();
1381 if (!CfgGameplayHandler.GetUse3DMap())
1382 {
1383 um.EnterScriptedMenu(MENU_MAP, null);
1385 GetGame().GetMission().AddActiveInputRestriction(EInputRestrictors.MAP);
1386 }
1387 }
1388 }
proto native UIManager GetUIManager()
proto native Mission GetMission()
void AddActiveInputRestriction(int restrictor)
void AddActiveInputExcludes(array< string > excludes)
proto native UIScriptedMenu EnterScriptedMenu(int id, UIMenuPanel parent)
Create & open menu with specific id (see MenuID) and set its parent.
bool IsMenuOpen(int id)
Returns true if menu with specific ID is opened (see MenuID)
Определения UIManager.c:154
bool CloseAll()
Close all opened menus.
Определения UIManager.c:78
proto native CGame GetGame()
const int MENU_MAP
Определения constants.c:191

Перекрестные ссылки Mission::AddActiveInputExcludes(), Mission::AddActiveInputRestriction(), UIManager::CloseAll(), UIManager::EnterScriptedMenu(), GetGame(), CGame::GetMission(), CGame::GetUIManager(), CfgGameplayHandler::GetUse3DMap(), UIManager::IsMenuOpen() и MENU_MAP.

Используется в OnUpdate().