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

◆ CloseInventoryMenu()

void ManBase::CloseInventoryMenu ( )
inlineprotected

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

6395 {
6396 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT)
6397 {
6398#ifndef NO_GUI
6399 UIScriptedMenu menu = GetGame().GetUIManager().GetMenu();
6400 if (menu && (menu.GetID() == MENU_INVENTORY || menu.GetID() == MENU_INSPECT))
6401 {
6403 GetGame().GetMission().RemoveActiveInputExcludes({"inventory"},false);
6404 GetGame().GetMission().RemoveActiveInputRestriction(EInputRestrictors.INVENTORY);
6405 }
6406#endif
6407 }
6408 }
proto native UIManager GetUIManager()
proto native Mission GetMission()
void RemoveActiveInputRestriction(int restrictor)
void RemoveActiveInputExcludes(array< string > excludes, bool bForceSupress=false)
deprecated
proto native UIScriptedMenu GetMenu()
Returns most-top open menu.
bool CloseAll()
Close all opened menus.
Определения UIManager.c:78
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1068
proto native DayZPlayerInstanceType GetInstanceType()
proto native CGame GetGame()
const int MENU_INSPECT
Определения 3_Game/constants.c:179
const int MENU_INVENTORY
Определения 3_Game/constants.c:180

Перекрестные ссылки UIManager::CloseAll(), GetGame(), GetInstanceType(), UIManager::GetMenu(), CGame::GetMission(), CGame::GetUIManager(), MENU_INSPECT, MENU_INVENTORY, Mission::RemoveActiveInputExcludes() и Mission::RemoveActiveInputRestriction().

Используется в OnCommandClimbStart(), OnCommandFallStart(), OnCommandLadderStart(), OnCommandSwimStart(), OnCommandVehicleStart(), OnRestrainStart() и OnUnconsciousStart().