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

◆ ItemDetached()

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

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

190 {
191 int slot = InventorySlots.GetSlotIdFromString( slot_name );
192 SlotsIcon icon = m_InventorySlots.Get( slot );
193
194 if( icon )
195 {
196 Container con = m_ShowedItems.Get( item );
197 if( con )
198 {
199 ( Container.Cast( con.m_Parent ) ).Remove( con );
200 RecomputeOpenedContainers();
201 GetMainWidget().Update();
202 Refresh();
203 m_ShowedItems.Remove( item );
204 }
205
206 icon.Clear();
207 Inventory in = Inventory.Cast( GetRoot() );
208 if( in )
209 in.UpdateConsoleToolbar();
210 }
211 UpdateSelectionIcons();
212 }
void Inventory(LayoutHolder parent)
Определения Inventory.c:74
const string Container
Определения CentralEconomy.c:6
override void Refresh()
Определения PlayerContainer.c:1091
ref map< int, SlotsIcon > m_InventorySlots
Определения PlayerContainer.c:4
ref map< EntityAI, ref Container > m_ShowedItems
Определения PlayerContainer.c:5
void Clear()
Определения SlotsIcon.c:612

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

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