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

◆ ShowInventory()

override void MissionBase::ShowInventory ( )
inlineprotected

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

1154 {
1155 UIScriptedMenu menu = GetUIManager().GetMenu();
1156
1157 if ( !menu && g_Game.GetPlayer().GetHumanInventory().CanOpenInventory() && !g_Game.GetPlayer().IsInventorySoftLocked() )
1158 {
1159 if( !m_InventoryMenu )
1160 {
1161 InitInventory();
1162 }
1163
1164 if( !GetUIManager().FindMenu( MENU_INVENTORY ) )
1165 {
1167 PlayerBase.Cast(g_Game.GetPlayer()).OnInventoryMenuOpen();
1168 }
1169 AddActiveInputExcludes({"inventory"});
1170 AddActiveInputRestriction(EInputRestrictors.INVENTORY);
1171 }
1172 }
DayZGame g_Game
Определения DayZGame.c:3942
UIManager GetUIManager()
Определения missionGameplay.c:181
override void AddActiveInputExcludes(array< string > excludes)
Adds one or more exclude groups to disable and refreshes excludes.
Определения missionGameplay.c:969
void InitInventory()
Определения missionGameplay.c:208
override void AddActiveInputRestriction(int restrictor)
Adds one input restriction (specific behaviour oudside regular excludes, defined below)
Определения missionGameplay.c:1001
ref InventoryMenu m_InventoryMenu
Определения missionGameplay.c:11
proto native UIScriptedMenu GetMenu()
Returns most-top open menu.
proto native UIScriptedMenu ShowScriptedMenu(UIScriptedMenu menu, UIMenuPanel parent)
const int MENU_INVENTORY
Определения 3_Game/DayZ/constants.c:180

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

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