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

◆ HandleMapToggleByKeyboardShortcut()

void MissionBase::HandleMapToggleByKeyboardShortcut ( Man player)
inlineprotected

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

1460 {
1461 UIManager um = g_Game.GetUIManager();
1462 if (um && !um.IsMenuOpen(MENU_MAP))
1463 {
1464 um.CloseAll();
1465 if (!CfgGameplayHandler.GetUse3DMap())
1466 {
1467 um.EnterScriptedMenu(MENU_MAP, null);
1468 Mission mission = g_Game.GetMission();
1470 mission.AddActiveInputRestriction(EInputRestrictors.MAP);
1471 }
1472 }
1473 }
DayZGame g_Game
Определения DayZGame.c:4074
Mission mission
Определения DisplayStatus.c:28
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
const int MENU_MAP
Определения 3_Game/DayZ/constants.c:197

Перекрестные ссылки UIManager::CloseAll(), UIManager::EnterScriptedMenu(), g_Game, CfgGameplayHandler::GetUse3DMap(), UIManager::IsMenuOpen(), MENU_MAP и mission.

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