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

◆ CloseInventoryMenu()

void ManBase::CloseInventoryMenu ( )
inlineprotected

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

6403 {
6404 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT)
6405 {
6406#ifndef NO_GUI
6407 UIScriptedMenu menu = GetGame().GetUIManager().GetMenu();
6408 if (menu && (menu.GetID() == MENU_INVENTORY || menu.GetID() == MENU_INSPECT))
6409 {
6411 GetGame().GetMission().RemoveActiveInputExcludes({"inventory"},false);
6412 GetGame().GetMission().RemoveActiveInputRestriction(EInputRestrictors.INVENTORY);
6413 }
6414#endif
6415 }
6416 }
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
Определения constants.c:179
const int MENU_INVENTORY
Определения 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().