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

◆ ItemDetached()

void ZombieContainer::ItemDetached ( EntityAI item,
string slot_name )
inlineprotected

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

298 {
299 int slot = InventorySlots.GetSlotIdFromString( slot_name );
300 SlotsIcon icon = m_InventorySlots.Get( slot );
301
302 if( icon )
303 {
304 Container con = m_ShowedItems.Get( item );
305 if( con )
306 {
307 ( Container.Cast( con.m_Parent ) ).Remove( con );
308 RecomputeOpenedContainers();
309 GetMainWidget().Update();
310 Refresh();
311 m_ShowedItems.Remove( item );
312 }
313
314 icon.Clear();
315 Inventory in = Inventory.Cast( GetRoot() );
316 if( in )
317 in.UpdateConsoleToolbar();
318 }
319 }
void Inventory(LayoutHolder parent)
Определения Inventory.c:74
const string Container
Определения CentralEconomy.c:6
override void Refresh()
Определения CollapsibleContainer.c:31
void Clear()
Определения SlotsIcon.c:612
ref map< EntityAI, ref Container > m_ShowedItems
Определения ZombieContainer.c:6
ref map< int, SlotsIcon > m_InventorySlots
Определения ZombieContainer.c:5

Перекрестные ссылки SlotsIcon::Clear(), InventorySlots::GetSlotIdFromString(), Inventory(), m_InventorySlots, m_ShowedItems и CollapsibleContainer::Refresh().

Используется в SetEntity() и ~ZombieContainer().