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

◆ CloseMapMenu()

void UIScriptedMenu::CloseMapMenu ( )
inlineprotected

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

333 {
334 if (m_WasChanged)
335 {
336 m_Map.SyncMapMarkers();
337 m_WasChanged = false;
338 }
339
340 PlayerBase player = PlayerBase.Cast(g_Game.GetPlayer());
341 if (player)
342 {
343 player.SetMapClosingSyncSet(false); //map is closing, server needs to be notified - once
344 }
345
346 if (m_Hud)
347 {
348 m_Hud.ShowHudUI(true);
349 m_Hud.ShowQuickbarUI(true);
350 }
351
352 if (CfgGameplayHandler.GetMapIgnoreMapOwnership())
353 {
354 if (!CfgGameplayHandler.GetUse3DMap())
355 {
357 }
358 else
359 {
360 GetGame().GetMission().RemoveActiveInputExcludes({"loopedactions"});
361 }
362
363 GetGame().GetMission().RemoveActiveInputRestriction(EInputRestrictors.MAP);
364 }
365
366 Close();
367 }
DayZGame g_Game
Определения DayZGame.c:3868
void Close()
proto native Mission GetMission()
void RemoveActiveInputRestriction(int restrictor)
void RemoveActiveInputExcludes(array< string > excludes, bool bForceSupress=false)
deprecated
ItemMap m_Map
Определения MapMenu.c:34
ref IngameHud m_Hud
Определения MapMenu.c:15
bool m_WasChanged
Определения MapMenu.c:7
proto native CGame GetGame()

Перекрестные ссылки Close(), g_Game, GetGame(), CfgGameplayHandler::GetMapIgnoreMapOwnership(), CGame::GetMission(), CfgGameplayHandler::GetUse3DMap(), m_Hud, m_Map, m_WasChanged, Mission::RemoveActiveInputExcludes() и Mission::RemoveActiveInputRestriction().

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