DayZ 1.24
Loading...
Searching...
No Matches
AttachmentCategoriesContainer Class Reference
Inheritance diagram for AttachmentCategoriesContainer:
[legend]
Collaboration diagram for AttachmentCategoriesContainer:
[legend]

Protected Member Functions

void AttachmentCategoriesContainer (LayoutHolder parent, int sort=-1)
 
void SetEntity (EntityAI entity)
 
void SetHeaderName ()
 
override bool IsDisplayable ()
 
override void UpdateInterval ()
 
void LoadAttachmentCategoriesIcon (SlotsContainer items_cont, string icon_name, int slot_number)
 
int GetAttachmentCategoriesCount (string config_path)
 
SlotsContainer GetSlotsContainer (int icons_row)
 
SlotsIcon GetCargoSlotsIcon ()
 
void ShowInSlots (string category, bool show)
 
override bool CanDisplayAnyCategory ()
 
override void UpdateRadialIcon ()
 
string GetAttachmentCategory (string config_path_attachment_categories, int i)
 
string GetIconName (string config_path_attachment_categories, string attachment_category)
 
int GetViewIndex (string config_path_attachment_categories, string attachment_category)
 
void MouseClick (Widget w)
 
override void ExpandCollapseContainer ()
 
bool IsHeaderActive ()
 
void InitIconsContainers ()
 
void InitGhostSlots ()
 
override void OnDropReceivedFromHeader (Widget w, int x, int y, Widget receiver)
 
override void DraggingOverHeader (Widget w, int x, int y, Widget receiver)
 
override void CollapseButtonOnMouseButtonDown (Widget w)
 
override void Open ()
 
override void Close ()
 
override void OnHide ()
 
override bool CanOpenCloseContainerEx (EntityAI focusedEntity)
 
override bool CanSplitEx (EntityAI focusedEntity)
 

Protected Attributes

ref map< string, intm_CategorySlotIndex
 
int m_SlotsCount
 
SlotsIcon m_CargoSlotsIcon
 

Additional Inherited Members

- Private Member Functions inherited from CollapsibleContainer
void CollapsibleContainer (LayoutHolder parent, int sort=-1)
 
override void SetLayoutName ()
 
EntityAI GetEntity ()
 
override void OnDropReceivedFromHeader (Widget w, int x, int y, Widget receiver)
 
override void Refresh ()
 
override void OnShow ()
 
override void OnHide ()
 
override void Insert (LayoutHolder container, int pos=-1, bool immedUpdate=true)
 
override void Remove (LayoutHolder container)
 
bool CanDisplayAnyCategory ()
 
void UpdateCollapseButtons ()
 
void LoadDefaultState ()
 
bool IsHidden ()
 
void CollapseButtonOnMouseButtonDown (Widget w)
 
override void Toggle ()
 
override bool OnChildRemove (Widget w, Widget child)
 
override bool OnChildAdd (Widget w, Widget child)
 
override Header GetHeader ()
 
override void SetHeader (Header header)
 
void SetCollapsibleHeaderArrowState (bool open)
 
- Private Attributes inherited from CollapsibleContainer
ref CollapsibleHeader m_CollapsibleHeader
 
bool m_Hidden
 

Detailed Description

Definition at line 1 of file AttachmentCategoriesContainer.c.

Constructor & Destructor Documentation

◆ AttachmentCategoriesContainer()

void AttachmentCategoriesContainer::AttachmentCategoriesContainer ( LayoutHolder parent,
int sort = -1 )
inlineprotected

Definition at line 7 of file AttachmentCategoriesContainer.c.

References m_CategorySlotIndex.

Member Function Documentation

◆ CanDisplayAnyCategory()

override bool AttachmentCategoriesContainer::CanDisplayAnyCategory ( )
inlineprotected

Definition at line 167 of file AttachmentCategoriesContainer.c.

168 {
169 int count = m_Body.Count();
171 for (int i = m_SlotsCount; i < count; i++)
172 {
173 if (Class.CastTo(row, m_Body[i]) && m_Entity.CanDisplayAttachmentCategory(row.GetCategoryIdentifier()))
174 return true;
175 }
176 return super.CanDisplayAnyCategory();
177 }
EntityAI m_Entity
Definition ActionDebug.c:11
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo(), m_Entity, and m_SlotsCount.

Referenced by IsDisplayable(), and UpdateRadialIcon().

◆ CanOpenCloseContainerEx()

override bool AttachmentCategoriesContainer::CanOpenCloseContainerEx ( EntityAI focusedEntity)
inlineprotected

Definition at line 475 of file AttachmentCategoriesContainer.c.

476 {
477 if (m_OpenedContainers.Count() > m_ActiveIndex)
478 {
480 SlotsIcon icon = GetFocusedSlotsIcon();
481
482 if (icon)
483 c = ClosableContainer.Cast(icon.GetContainer());
484
485 if (c && c.IsDisplayable())
486 return true;
487 }
488
489 return false;
490 }

◆ CanSplitEx()

override bool AttachmentCategoriesContainer::CanSplitEx ( EntityAI focusedEntity)
inlineprotected

Definition at line 492 of file AttachmentCategoriesContainer.c.

493 {
494 return false;
495 }

◆ Close()

override void AttachmentCategoriesContainer::Close ( )
inlineprotected

Definition at line 444 of file AttachmentCategoriesContainer.c.

445 {
446 //ItemManager.GetInstance().SetDefaultOpenState( m_Entity.GetType(), false );
447 super.Close();
448
452 else if (m_SlotIcon && m_SlotIcon.GetObject())
453 icon = m_SlotIcon;
454 /*else
455 {
456 Print("Dbg | no object in icon here!");
457 }
458 */
459
460 SetOpenForSlotIcon(false, icon);
461 OnHide();
462 }
Object GetObject()
Definition SlotsIcon.c:362

References SlotsIcon::GetObject(), m_CargoSlotsIcon, and OnHide().

◆ CollapseButtonOnMouseButtonDown()

override void AttachmentCategoriesContainer::CollapseButtonOnMouseButtonDown ( Widget w)
inlineprotected

Definition at line 402 of file AttachmentCategoriesContainer.c.

403 {
404 if (!m_Hidden)
405 {
406 for (int i = 1; i < m_Body.Count(); i++)
407 {
408 m_Body.Get(i).OnHide();
409 Container c = Container.Cast(m_Body.Get(i));
410 if (c)
411 c.Close();
412 }
413
414 //m_Hidden = true;
415 OnHide();
416 }
417 else
418 {
419 //m_Hidden = false;
420 OnShow();
421 }
422 m_Closed = m_Hidden;
423
426 m_CollapsibleHeader.SetHeaderVisible(true);
427
429 RecomputeOpenedContainers();
430 }
ref CollapsibleHeader m_CollapsibleHeader
void SetCollapsibleHeaderArrowState(bool open)

References CollapsibleContainer::m_CollapsibleHeader, CollapsibleContainer::m_Hidden, OnHide(), CollapsibleContainer::OnShow(), CollapsibleContainer::SetCollapsibleHeaderArrowState(), and CollapsibleContainer::UpdateCollapseButtons().

◆ DraggingOverHeader()

override void AttachmentCategoriesContainer::DraggingOverHeader ( Widget w,
int x,
int y,
Widget receiver )
inlineprotected

Definition at line 377 of file AttachmentCategoriesContainer.c.

378 {
379 if (w == null)
380 return;
381 ItemPreviewWidget iw = ItemPreviewWidget.Cast(w.FindAnyWidget("Render"));
382 if (!iw)
383 {
384 string name = w.GetName();
385 name.Replace("PanelWidget", "Render");
386 iw = ItemPreviewWidget.Cast(w.FindAnyWidget(name));
387 }
388 if (!iw)
389 iw = ItemPreviewWidget.Cast(w);
390 if (!iw || !iw.GetItem())
391 return;
392
393 ItemManager.GetInstance().ShowSourceDropzone(iw.GetItem());
395 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
static int RED_COLOR
static ColorManager GetInstance()
static ItemManager GetInstance()

References ColorManager::GetInstance(), ItemManager::GetInstance(), name, and ColorManager::RED_COLOR.

◆ ExpandCollapseContainer()

override void AttachmentCategoriesContainer::ExpandCollapseContainer ( )
inlineprotected

Definition at line 224 of file AttachmentCategoriesContainer.c.

225 {
226 if (m_OpenedContainers.Count() > m_ActiveIndex)
227 {
228 //c - container where selected icon is part of
229 Container c = Container.Cast(m_OpenedContainers.Get(m_ActiveIndex));
230 //cc - container connected to selected icon (this container will be close/open)
232 //icon - selected icon
233 SlotsIcon icon = c.GetFocusedSlotsIcon();
234
235 if (icon)
236 cc = ClosableContainer.Cast(icon.GetContainer());
237
238 if (cc)
239 {
240
241 cc.Toggle();
242 RecomputeOpenedContainers();
243 }
244 }
245 }

◆ GetAttachmentCategoriesCount()

int AttachmentCategoriesContainer::GetAttachmentCategoriesCount ( string config_path)
inlineprotected

Definition at line 133 of file AttachmentCategoriesContainer.c.

134 {
135 return GetGame().ConfigGetChildrenCount(config_path);
136 }
proto native CGame GetGame()

References GetGame().

Referenced by InitGhostSlots(), and InitIconsContainers().

◆ GetAttachmentCategory()

string AttachmentCategoriesContainer::GetAttachmentCategory ( string config_path_attachment_categories,
int i )
inlineprotected

Definition at line 193 of file AttachmentCategoriesContainer.c.

194 {
195 string attachment_category;
197 return attachment_category;
198 }

References GetGame().

Referenced by InitGhostSlots().

◆ GetCargoSlotsIcon()

SlotsIcon AttachmentCategoriesContainer::GetCargoSlotsIcon ( )
inlineprotected

Definition at line 144 of file AttachmentCategoriesContainer.c.

145 {
146 return m_CargoSlotsIcon;
147 }

References m_CargoSlotsIcon.

◆ GetIconName()

string AttachmentCategoriesContainer::GetIconName ( string config_path_attachment_categories,
string attachment_category )
inlineprotected

Definition at line 200 of file AttachmentCategoriesContainer.c.

201 {
203 string icon_name;
204 GetGame().ConfigGetText(icon_path, icon_name);
205 return icon_name;
206 }

References GetGame().

Referenced by InitGhostSlots().

◆ GetSlotsContainer()

SlotsContainer AttachmentCategoriesContainer::GetSlotsContainer ( int icons_row)
inlineprotected

◆ GetViewIndex()

int AttachmentCategoriesContainer::GetViewIndex ( string config_path_attachment_categories,
string attachment_category )
inlineprotected

Definition at line 208 of file AttachmentCategoriesContainer.c.

209 {
211 return GetGame().ConfigGetInt(preview_path);;
212 }

References GetGame().

◆ InitGhostSlots()

void AttachmentCategoriesContainer::InitGhostSlots ( )
inlineprotected

Definition at line 280 of file AttachmentCategoriesContainer.c.

281 {
282 string type = m_Entity.GetType();
283 string config_path_attachment_categories = "CfgVehicles " + type + " GUIInventoryAttachmentsProps";
284
286
289 string attachment_category;
290 string icon_name;
291
292 for (int i = 0; i < attachments_categories_count; i++)
293 {
297
298 if (items_cont)
299 {
300 int slot_number = i % ITEMS_IN_ROW;
302 icon = items_cont.GetSlotIcon(slot_number);
303 icon.GetGhostSlot().SetFlags(WidgetFlags.IGNOREPOINTER);
304
306
308 string name;
309
310 GetGame().ConfigGetText(config, name);
311 icon.SetSlotDisplayName(name);
312
314
315 ar = new AttachmentCategoriesRow(this, -1);
317
318 //Insert(ar);
319 ar.SetSlotIcon(icon);
320 //icon.SetContainer(ar);
321
322 icon.GetRadialIconPanel().Show(true);
323 ar.Open();
324 icon.SetContainer(ar);
325 Insert(ar);
326 }
327 }
328
329 if (m_Entity.GetInventory().GetCargo())
330 {
332 if (items_cont)
333 {
335 icon.GetGhostSlot().Show(true);
336 icon.GetGhostSlot().LoadImageFile(0, StaticGUIUtils.VerifyIconImageString(StaticGUIUtils.IMAGESETGROUP_INVENTORY, m_Entity.ConfigGetString("GUIInventoryCargoIcon")));
337 icon.SetSlotDisplayName(m_Entity.ConfigGetString("GUIInventoryCargoName"));
338 icon.GetGhostSlot().SetFlags(WidgetFlags.IGNOREPOINTER);
339
340 icon.GetRadialIconPanel().Show(true);
341 icon.GetMainWidget().Show(true);
342
343 ContainerWithCargo iwc = new ContainerWithCargo(this, -1);
344 iwc.Get(0).GetRootWidget().ClearFlags(WidgetFlags.DRAGGABLE);
345 iwc.SetEntity(m_Entity, 0, false);
346 iwc.SetSlotIcon(icon);
347 iwc.Open();
348
349 icon.SetContainer(iwc);
351 }
352 }
353
354 RecomputeOpenedContainers();
355 }
const int ITEMS_IN_ROW
Definition Attachments.c:1
void LoadAttachmentCategoriesIcon(SlotsContainer items_cont, string icon_name, int slot_number)
string GetAttachmentCategory(string config_path_attachment_categories, int i)
int GetAttachmentCategoriesCount(string config_path)
string GetIconName(string config_path_attachment_categories, string attachment_category)
SlotsContainer GetSlotsContainer(int icons_row)
override void Insert(LayoutHolder container, int pos=-1, bool immedUpdate=true)
static const int IMAGESETGROUP_INVENTORY
static string VerifyIconImageString(int imageset_group=IMAGESETGROUP_INVENTORY, string icon_name="")
Checks for improperly formated, legacy image names and corrects them to default format.
WidgetFlags
Definition EnWidgets.c:58

References GetAttachmentCategoriesCount(), GetAttachmentCategory(), GetGame(), GetIconName(), GetSlotsContainer(), StaticGUIUtils::IMAGESETGROUP_INVENTORY, CollapsibleContainer::Insert(), ITEMS_IN_ROW, LoadAttachmentCategoriesIcon(), m_CargoSlotsIcon, m_CategorySlotIndex, m_Entity, m_SlotsCount, name, and StaticGUIUtils::VerifyIconImageString().

Referenced by SetEntity().

◆ InitIconsContainers()

void AttachmentCategoriesContainer::InitIconsContainers ( )
inlineprotected

Definition at line 252 of file AttachmentCategoriesContainer.c.

253 {
254 m_SlotsCount = 0;
255
256 string type = m_Entity.GetType();
257 string config_path_attachment_categories = "CfgVehicles " + type + " GUIInventoryAttachmentsProps";
260 if (m_Entity.GetInventory().GetCargo())
264 row_count++;
265 for (int i = 0; i < row_count; i++)
266 {
268 m_Body.Insert(items_cont);
269 m_OpenedContainers.Insert(items_cont);
270
271 //TODO MW find better way
272 if (i == (row_count - 1) && categories_count % ITEMS_IN_ROW != 0)
273 items_cont.GetSlotsContainer().SetColumnCount(categories_count % ITEMS_IN_ROW);
274 else
275 items_cont.GetSlotsContainer().SetColumnCount(ITEMS_IN_ROW);
276 }
278 }

References GetAttachmentCategoriesCount(), ITEMS_IN_ROW, m_Entity, and m_SlotsCount.

Referenced by SetEntity().

◆ IsDisplayable()

override bool AttachmentCategoriesContainer::IsDisplayable ( )
inlineprotected

Definition at line 34 of file AttachmentCategoriesContainer.c.

35 {
36 return !IsEmpty() || CanDisplayAnyCategory();
37 }
override bool IsEmpty()

References CanDisplayAnyCategory(), and Container::IsEmpty().

Referenced by Open().

◆ IsHeaderActive()

bool AttachmentCategoriesContainer::IsHeaderActive ( )
inlineprotected

Definition at line 247 of file AttachmentCategoriesContainer.c.

248 {
249 return m_CollapsibleHeader.IsActive();
250 }

References CollapsibleContainer::m_CollapsibleHeader.

◆ LoadAttachmentCategoriesIcon()

void AttachmentCategoriesContainer::LoadAttachmentCategoriesIcon ( SlotsContainer items_cont,
string icon_name,
int slot_number )
inlineprotected

Definition at line 125 of file AttachmentCategoriesContainer.c.

126 {
127 SlotsIcon icon = items_cont.GetSlotIcon(slot_number);
128 ImageWidget image_widget = icon.GetGhostSlot();
129 image_widget.Show(true);
130 image_widget.LoadImageFile(0, StaticGUIUtils.VerifyIconImageString(StaticGUIUtils.IMAGESETGROUP_INVENTORY, icon_name)); //icon_name must be in format "set:<setname> image:<imagename>"
131 }

References StaticGUIUtils::IMAGESETGROUP_INVENTORY, and StaticGUIUtils::VerifyIconImageString().

Referenced by InitGhostSlots().

◆ MouseClick()

void AttachmentCategoriesContainer::MouseClick ( Widget w)
inlineprotected

Definition at line 214 of file AttachmentCategoriesContainer.c.

215 {
217 w.GetUserData(icon);
218
219 ClosableContainer c = ClosableContainer.Cast(icon.GetContainer());
220 if (c)
221 c.Toggle();
222 }

◆ OnDropReceivedFromHeader()

override void AttachmentCategoriesContainer::OnDropReceivedFromHeader ( Widget w,
int x,
int y,
Widget receiver )
inlineprotected

Definition at line 358 of file AttachmentCategoriesContainer.c.

359 {
360 ItemPreviewWidget iw = ItemPreviewWidget.Cast(w.FindAnyWidget("Render"));
361 if (!iw)
362 {
363 string name = w.GetName();
364 name.Replace("PanelWidget", "Render");
365 iw = ItemPreviewWidget.Cast(w.FindAnyWidget(name));
366 }
367 if (!iw)
368 iw = ItemPreviewWidget.Cast(w);
369 if (!iw.GetItem())
370 return;
371 if (m_Entity.GetInventory().CanAddAttachment(iw.GetItem()) && iw.GetItem().GetInventory().CanRemoveEntity())
372 GetGame().GetPlayer().PredictiveTakeEntityToTargetAttachment(m_Entity, iw.GetItem());
373 else if (m_Entity.GetInventory().CanAddEntityToInventory(iw.GetItem()) && iw.GetItem().GetInventory().CanRemoveEntity())
374 GetGame().GetPlayer().PredictiveTakeEntityToTargetInventory(m_Entity, FindInventoryLocationType.ANY, iw.GetItem());
375 }
FindInventoryLocationType
flags for searching locations in inventory

References GetGame(), m_Entity, and name.

◆ OnHide()

override void AttachmentCategoriesContainer::OnHide ( )
inlineprotected

Definition at line 464 of file AttachmentCategoriesContainer.c.

465 {
467 {
468 bool b1 = !m_SlotIcon && !m_CargoSlotsIcon;
469 bool b2 = (!m_SlotIcon || !m_SlotIcon.IsVisible()) && m_CargoSlotsIcon && m_CargoSlotsIcon.IsVisible();
470 m_CollapsibleHeader.SetHeaderVisible(b1 || b2);
471 }
472 super.OnHide();
473 }
override bool IsVisible()
Definition SlotsIcon.c:131

References SlotsIcon::IsVisible(), m_CargoSlotsIcon, and CollapsibleContainer::m_CollapsibleHeader.

Referenced by Close(), and CollapseButtonOnMouseButtonDown().

◆ Open()

override void AttachmentCategoriesContainer::Open ( )
inlineprotected

Definition at line 432 of file AttachmentCategoriesContainer.c.

433 {
434 if (IsDisplayable())
435 {
436 super.Open();
437 //ItemManager.GetInstance().SetDefaultOpenState( m_Entity.GetType(), true );
438 SetOpenForSlotIcon(true);
439 OnShow();
440 //m_Parent.m_Parent.Refresh();
441 }
442 }

References IsDisplayable(), and CollapsibleContainer::OnShow().

◆ SetEntity()

void AttachmentCategoriesContainer::SetEntity ( EntityAI entity)
inlineprotected

Definition at line 12 of file AttachmentCategoriesContainer.c.

13 {
16
17 m_MainWidget = m_RootWidget.FindAnyWidget("body");
18 WidgetEventHandler.GetInstance().RegisterOnChildAdd(m_MainWidget, this, "OnChildAdd");
19 WidgetEventHandler.GetInstance().RegisterOnChildRemove(m_MainWidget, this, "OnChildRemove");
20
22
23 (Container.Cast(m_Parent)).m_Body.Insert(this);
24 m_Parent.Refresh();
26 RecomputeOpenedContainers();
27 }
ref Widget m_RootWidget[MAX_SIMULTANIOUS_PLAYERS]
Widget m_Parent
Definition SizeToChild.c:86
static WidgetEventHandler GetInstance()

References WidgetEventHandler::GetInstance(), InitGhostSlots(), InitIconsContainers(), m_Entity, m_Parent, m_RootWidget, and SetHeaderName().

◆ SetHeaderName()

void AttachmentCategoriesContainer::SetHeaderName ( )
inlineprotected

Definition at line 29 of file AttachmentCategoriesContainer.c.

30 {
31 m_CollapsibleHeader.SetName(m_Entity.GetDisplayName());
32 }

References CollapsibleContainer::m_CollapsibleHeader, and m_Entity.

Referenced by SetEntity().

◆ ShowInSlots()

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

Definition at line 149 of file AttachmentCategoriesContainer.c.

150 {
153
155 if (items_cont)
156 {
157 Widget icon_widget = items_cont.GetSlotIcon(slot_number).GetMainWidget();
158 if (icon_widget)
159 icon_widget.Show(show);
160 icon_widget.GetParent().Update();
161 icon_widget.GetParent().GetParent().Update();
162 icon_widget.GetParent().GetParent().GetParent().Update();
163 }
164 }

References GetSlotsContainer(), ITEMS_IN_ROW, and m_CategorySlotIndex.

Referenced by UpdateInterval().

◆ UpdateInterval()

override void AttachmentCategoriesContainer::UpdateInterval ( )
inlineprotected

Definition at line 39 of file AttachmentCategoriesContainer.c.

40 {
41 if (m_Entity)
42 {
43 if (m_Entity.GetInventory().IsInventoryLockedForLockType(HIDE_INV_FROM_SCRIPT) || m_Hidden)
44 {
45 if (m_Body.Count() > 0 && !m_Hidden)
46 m_CollapsibleHeader.OnHide();
47 HideContent();
48 GetMainWidget().Show(false);
49 }
50 else
51 {
52 if (m_Body.Count() > 0 && !m_Hidden)
53 {
54 if (m_Body.Count() > 0 && !m_Hidden)
55 m_CollapsibleHeader.OnShow();
56 int i;
57 for (i = m_SlotsCount; i < m_Body.Count(); i++)
58 {
60 if (row)
61 {
62 if (m_Entity.CanDisplayAttachmentCategory(row.GetCategoryIdentifier()))
63 {
64 if (row.IsDisplayable())
65 {
66 ShowInSlots(row.GetCategoryIdentifier(), true);
67 if (!row.IsVisible())
68 row.OnShow();
69 }
70 else
71 {
72 ShowInSlots(row.GetCategoryIdentifier(), false);
73 if (row.IsVisible())
74 row.OnHide();
75 }
76 }
77 else
78 {
79 ShowInSlots(row.GetCategoryIdentifier(), false);
80 if (row.IsVisible())
81 row.OnHide();
82 }
83 row.UpdateInterval();
84 }
85 else
86 {
87 ContainerWithCargo cargo = ContainerWithCargo.Cast(m_Body[i]);
88 if (cargo)
89 {
90 if (m_Entity.CanDisplayCargo())
91 {
92 m_CargoSlotsIcon.m_MainWidget.Show(true);
93 if (!cargo.IsVisible())
94 cargo.OnShow();
95 }
96 else
97 {
98 m_CargoSlotsIcon.m_MainWidget.Show(false);
99 if (cargo.IsVisible())
100 cargo.OnHide();
101 }
102 cargo.UpdateInterval();
103 }
104 RecomputeOpenedContainers();
105
106 }
107
108 }
109 for (i = 0; i < m_SlotsCount; i++)
110 {
112 {
113 if (slots.IsDisplayable())
114 slots.OnShow();
115 else
116 slots.OnHide();
117 }
118 }
119 }
120 GetMainWidget().Show(true);
121 }
122 }
123 }
void ShowInSlots(string category, bool show)

References m_CargoSlotsIcon, CollapsibleContainer::m_CollapsibleHeader, m_Entity, CollapsibleContainer::m_Hidden, m_SlotsCount, and ShowInSlots().

◆ UpdateRadialIcon()

override void AttachmentCategoriesContainer::UpdateRadialIcon ( )
inlineprotected

Definition at line 179 of file AttachmentCategoriesContainer.c.

180 {
181 if (m_SlotIcon)
182 {
183 if (m_Entity.CanDisplayCargo() || CanDisplayAnyCategory())
184 {
185 m_SlotIcon.GetRadialIconPanel().Show(true);
186 SetOpenForSlotIcon(!m_Hidden);
187 }
188 else
189 m_SlotIcon.GetRadialIconPanel().Show(false);
190 }
191 }

References CanDisplayAnyCategory(), m_Entity, and CollapsibleContainer::m_Hidden.

Member Data Documentation

◆ m_CargoSlotsIcon

SlotsIcon AttachmentCategoriesContainer::m_CargoSlotsIcon
protected

◆ m_CategorySlotIndex

ref map<string, int> AttachmentCategoriesContainer::m_CategorySlotIndex
protected

◆ m_SlotsCount

int AttachmentCategoriesContainer::m_SlotsCount
protected

The documentation for this class was generated from the following file: