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

◆ ShowInventory()

override void MissionBase::ShowInventory ( )
inlineprotected

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

1191 {
1192 UIScriptedMenu menu = GetUIManager().GetMenu();
1193
1194 if ( !menu && g_Game.GetPlayer().GetHumanInventory().CanOpenInventory() && !g_Game.GetPlayer().IsInventorySoftLocked() )
1195 {
1196 if( !m_InventoryMenu )
1197 {
1198 InitInventory();
1199 }
1200
1201 if( !GetUIManager().FindMenu( MENU_INVENTORY ) )
1202 {
1204 PlayerBase.Cast(g_Game.GetPlayer()).OnInventoryMenuOpen();
1205 }
1206 AddActiveInputExcludes({"inventory"});
1207 AddActiveInputRestriction(EInputRestrictors.INVENTORY);
1208 }
1209 }
DayZGame g_Game
Определения DayZGame.c:4074
UIManager GetUIManager()
Определения missionGameplay.c:188
override void AddActiveInputExcludes(array< string > excludes)
Adds one or more exclude groups to disable and refreshes excludes.
Определения missionGameplay.c:1001
void InitInventory()
Определения missionGameplay.c:217
override void AddActiveInputRestriction(int restrictor)
Adds one input restriction (specific behaviour oudside regular excludes, defined below)
Определения missionGameplay.c:1033
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:186

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

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