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

◆ ShowInventory()

override void MissionBase::ShowInventory ( )
inlineprotected

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

1146 {
1147 UIScriptedMenu menu = GetUIManager().GetMenu();
1148
1149 if ( !menu && GetGame().GetPlayer().GetHumanInventory().CanOpenInventory() && !GetGame().GetPlayer().IsInventorySoftLocked() )
1150 {
1151 if( !m_InventoryMenu )
1152 {
1153 InitInventory();
1154 }
1155
1156 if( !GetUIManager().FindMenu( MENU_INVENTORY ) )
1157 {
1159 PlayerBase.Cast(GetGame().GetPlayer()).OnInventoryMenuOpen();
1160 }
1161 AddActiveInputExcludes({"inventory"});
1162 AddActiveInputRestriction(EInputRestrictors.INVENTORY);
1163 }
1164 }
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:961
void InitInventory()
Определения missionGameplay.c:206
override void AddActiveInputRestriction(int restrictor)
Adds one input restriction (specific behaviour oudside regular excludes, defined below)
Определения missionGameplay.c:993
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
Определения 3_Game/constants.c:180

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

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