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

◆ AttachmentAdded()

void Attachments::AttachmentAdded ( EntityAI item,
string slot,
EntityAI parent )
inlineprotected

См. определение в файле 5_Mission/DayZ/GUI/InventoryNew/Attachments.c строка 417

418 {
419 int slot_id = InventorySlots.GetSlotIdFromString(slot);
420 SlotsIcon icon = m_AttachmentSlots.Get(slot_id);
421 if (icon)
422 {
423 icon.SetSlotID(slot_id);
424 icon.SetSlotDisplayName(InventorySlots.GetSlotDisplayName(slot_id));
425 if (item)
426 {
427 icon.Init(item);
428 }
429 }
430 }
ref map< int, SlotsIcon > m_AttachmentSlots
void SetSlotID(int slot_ID)
Определения SlotsIconBase.c:165
void SetSlotDisplayName(string text)
Определения SlotsIconBase.c:114
void Init(EntityAI obj, bool reservation=false)
Определения SlotsIconBase.c:472

Перекрестные ссылки InventorySlots::GetSlotDisplayName(), InventorySlots::GetSlotIdFromString(), SlotsIconBase::Init(), m_AttachmentSlots, SlotsIconBase::SetSlotDisplayName() и SlotsIconBase::SetSlotID().

Используется в Attachments(), InitAttachmentGrid() и ~Attachments().