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

◆ ShowInSlots()

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

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

179 {
180 int index = m_CategorySlotIndex.Get( category );
181 int slot_number = index % ITEMS_IN_ROW;
182
183 SlotsContainer items_cont = GetSlotsContainer( index / ITEMS_IN_ROW );
184 if( items_cont )
185 {
186 Widget icon_widget = items_cont.GetSlotIcon( slot_number ).GetMainWidget();
187 if( icon_widget )
188 icon_widget.Show( show );
189 icon_widget.GetParent().Update();
190 icon_widget.GetParent().GetParent().Update();
191 icon_widget.GetParent().GetParent().GetParent().Update();
192 }
193 }
const int ITEMS_IN_ROW
Определения Attachments.c:1
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().