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

◆ ShowInSlots()

void AttachmentCategoriesContainer::ShowInSlots ( string category,
bool show )
inlineprotected

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

184 {
185 int index = m_CategorySlotIndex.Get(category);
186 int slot_number = index % ITEMS_IN_ROW;
187
188 SlotsContainer items_cont = GetSlotsContainer(index / ITEMS_IN_ROW);
189 if (items_cont)
190 {
191 Widget icon_widget = items_cont.GetSlotIcon(slot_number).GetMainWidget();
192 if (icon_widget)
193 icon_widget.Show(show);
194 icon_widget.GetParent().Update();
195 icon_widget.GetParent().GetParent().Update();
196 icon_widget.GetParent().GetParent().GetParent().Update();
197 }
198 }
const int ITEMS_IN_ROW
ref map< string, int > m_CategorySlotIndex
Определения AttachmentCategoriesContainer.c:3
SlotsContainer GetSlotsContainer(int icons_row)
SlotsIcon GetSlotIcon(int index)
Определения SlotsContainer.c:207
WorkspaceWidget Widget
Defined in code.

Перекрестные ссылки SlotsContainer::GetSlotIcon(), GetSlotsContainer(), ITEMS_IN_ROW и m_CategorySlotIndex.

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