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

◆ HandleMapToggleByKeyboardShortcut()

void MissionBase::HandleMapToggleByKeyboardShortcut ( Man player)
inlineprotected

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

1391 {
1392 UIManager um = GetGame().GetUIManager();
1393 if (um && !um.IsMenuOpen(MENU_MAP))
1394 {
1395 um.CloseAll();
1396 if (!CfgGameplayHandler.GetUse3DMap())
1397 {
1398 um.EnterScriptedMenu(MENU_MAP, null);
1400 GetGame().GetMission().AddActiveInputRestriction(EInputRestrictors.MAP);
1401 }
1402 }
1403 }
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
Определения 3_Game/constants.c:191

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

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