322 {
326 int childrenCount = m_Body.Count();
327
328 SlotsContainer items_cont;
329 SlotsIcon icon;
330 string attCategoryClass;
331 string icon_name2;
332 TypeAttachmentGroupData groupData;
333
334 for (int i = 0; i < categoriesCount; ++i)
335 {
337 attCategoryClass = groupMap.GetKey(i);
338 groupData = groupMap.Get(attCategoryClass);
339
340 if (items_cont)
341 {
348
349 AttachmentCategoriesRow ar;
350 ar = new AttachmentCategoriesRow(this, -1);
352
353 ar.SetSlotIcon(icon);
354
359 }
360 }
361
363 {
365 if (items_cont)
366 {
369 icon.
GetGhostSlot().LoadImageFile(0, StaticGUIUtils.VerifyIconImageString(StaticGUIUtils.IMAGESETGROUP_INVENTORY,
m_Entity.ConfigGetString(
"GUIInventoryCargoIcon")));
372
374 icon.GetMainWidget().Show(true);
375
376 ContainerWithCargo iwc = new ContainerWithCargo(this, -1);
377 iwc.Get(0).GetRootWidget().ClearFlags(
WidgetFlags.DRAGGABLE);
379 iwc.SetSlotIcon(icon);
380 iwc.Open();
381
384 }
385 }
386
387 RecomputeOpenedContainers();
388 }
map< string, ref TypeAttachmentGroupData > TAttachmentGroupMap
ref map< string, int > m_CategorySlotIndex
void LoadAttachmentCategoriesIcon(SlotsContainer items_cont, string icon_name, int slot_number)
SlotsIcon m_CargoSlotsIcon
SlotsContainer GetSlotsContainer(int icons_row)
void Init(int attachments_categories_count, int i, string attachment_category, string config_path_attachment_categories, EntityAI entity, int parent_m_Body_count)
override void Insert(LayoutHolder container, int pos=-1, bool immedUpdate=true)
proto native GameInventory GetInventory()
TypeAttachmentGroupsDataHolder GetTypeAttachmentGroupInfoHolder()
proto native CargoBase GetCargo()
cargo
SlotsIcon GetSlotIcon(int index)
void SetContainer(Container container)
Widget GetRadialIconPanel()
ImageWidget GetGhostSlot()
void SetSlotDisplayName(string text)
string m_IconPath
Displayable, unlocalized name.
TAttachmentGroupMap GetAttachmentGroupMap()
int GetValidAttachmnetGroupCount()