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

◆ HandleMapToggleByKeyboardShortcut()

void MissionBase::HandleMapToggleByKeyboardShortcut ( Man player)
inlineprotected

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

1399 {
1400 UIManager um = g_Game.GetUIManager();
1401 if (um && !um.IsMenuOpen(MENU_MAP))
1402 {
1403 um.CloseAll();
1404 if (!CfgGameplayHandler.GetUse3DMap())
1405 {
1406 um.EnterScriptedMenu(MENU_MAP, null);
1407 Mission mission = g_Game.GetMission();
1409 mission.AddActiveInputRestriction(EInputRestrictors.MAP);
1410 }
1411 }
1412 }
DayZGame g_Game
Определения DayZGame.c:3942
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:191

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

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