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

◆ UpdateNames()

void AttachmentCategoriesContainer::UpdateNames ( )
inlineprotected

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

539 {
540 TypeAttachmentGroupsDataHolder holder = m_Entity.GetTypeAttachmentGroupInfoHolder();
541 if (holder)
542 holder.RefreshLocalizedTexts();
543
545
546 if (holder)
547 {
548 TAttachmentGroupMap groupMap = holder.GetAttachmentGroupMap();
549 foreach (string attCategoryClass, int slotIndex : m_CategorySlotIndex)
550 {
551 TypeAttachmentGroupData groupData = groupMap.Get(attCategoryClass);
552 SlotsContainer items_cont = GetSlotsContainer(slotIndex / ITEMS_IN_ROW);
553 if (items_cont && groupData)
554 {
555 SlotsIcon icon = items_cont.GetSlotIcon(slotIndex % ITEMS_IN_ROW);
556 if (icon)
557 icon.SetSlotDisplayName(groupData.m_Name);
558 }
559 }
560 }
561 }
const int ITEMS_IN_ROW
Entity m_Entity
Определения CachedEquipmentStorageBase.c:16
map< string, ref TypeAttachmentGroupData > TAttachmentGroupMap
Определения TypeAttachmentGroupDataHolders.c:1
ref map< string, int > m_CategorySlotIndex
Определения AttachmentCategoriesContainer.c:3
SlotsContainer GetSlotsContainer(int icons_row)
TypeAttachmentGroupsDataHolder GetTypeAttachmentGroupInfoHolder()
SlotsIcon GetSlotIcon(int index)
Определения SlotsContainer.c:207
void SetSlotDisplayName(string text)
Определения SlotsIconBase.c:114
TAttachmentGroupMap GetAttachmentGroupMap()
void RefreshLocalizedTexts()
Re-reads localized header/name strings without rebuilding slot config data.

Перекрестные ссылки TypeAttachmentGroupsDataHolder::GetAttachmentGroupMap(), SlotsContainer::GetSlotIcon(), GetSlotsContainer(), ITEMS_IN_ROW, m_CategorySlotIndex, m_Entity, TypeAttachmentGroupData::m_Name, TypeAttachmentGroupsDataHolder::RefreshLocalizedTexts(), SetHeaderName() и SlotsIconBase::SetSlotDisplayName().

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