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

◆ ShowInventory()

override void MissionBase::ShowInventory ( )
inlineprotected

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

1136 {
1137 UIScriptedMenu menu = GetUIManager().GetMenu();
1138
1139 if ( !menu && GetGame().GetPlayer().GetHumanInventory().CanOpenInventory() && !GetGame().GetPlayer().IsInventorySoftLocked() )
1140 {
1141 if( !m_InventoryMenu )
1142 {
1143 InitInventory();
1144 }
1145
1146 if( !GetUIManager().FindMenu( MENU_INVENTORY ) )
1147 {
1149 PlayerBase.Cast(GetGame().GetPlayer()).OnInventoryMenuOpen();
1150 }
1151 AddActiveInputExcludes({"inventory"});
1152 AddActiveInputRestriction(EInputRestrictors.INVENTORY);
1153 }
1154 }
PlayerBase GetPlayer()
Определения ModifierBase.c:51
UIManager GetUIManager()
Определения missionGameplay.c:179
override void AddActiveInputExcludes(array< string > excludes)
Adds one or more exclude groups to disable and refreshes excludes.
Определения missionGameplay.c:951
void InitInventory()
Определения missionGameplay.c:196
override void AddActiveInputRestriction(int restrictor)
Adds one input restriction (specific behaviour oudside regular excludes, defined below)
Определения missionGameplay.c:983
ref InventoryMenu m_InventoryMenu
Определения missionGameplay.c:11
proto native UIScriptedMenu GetMenu()
Returns most-top open menu.
proto native UIScriptedMenu ShowScriptedMenu(UIScriptedMenu menu, UIMenuPanel parent)
proto native CGame GetGame()
const int MENU_INVENTORY
Определения constants.c:180

Перекрестные ссылки AddActiveInputExcludes(), AddActiveInputRestriction(), GetGame(), GetPlayer(), GetUIManager(), InitInventory(), m_InventoryMenu и MENU_INVENTORY.

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