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

◆ ToggleContainer()

void PlayerContainer::ToggleContainer ( Widget w,
EntityAI item )
inlineprotected

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

1032 {
1033 InventoryLocation il = new InventoryLocation;
1034 item.GetInventory().GetCurrentInventoryLocation( il );
1035 SlotsIcon icon = m_InventorySlots.Get( il.GetSlot() );
1036 ClosableContainer c = ClosableContainer.Cast( m_ShowedItems.Get( item ) );
1037 if (c)
1038 {
1039 c.Toggle();
1040 Refresh();
1041 }
1042 }
void ClosableContainer(LayoutHolder parent, int sort=-1)
Определения ClosableContainer.c:6
proto native int GetSlot()
returns slot id if current type is Attachment
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

Перекрестные ссылки Container::ClosableContainer(), InventoryLocation::GetSlot(), m_InventorySlots, m_ShowedItems и Refresh().

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