Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс AttachmentCategoriesContainer
+ Граф наследования:AttachmentCategoriesContainer:

Защищенные члены

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)
 

Защищенные данные

ref map< string, intm_CategorySlotIndex
 
int m_SlotsCount
 
SlotsIcon m_CargoSlotsIcon
 

Дополнительные унаследованные члены

- Закрытые члены унаследованные от 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)
 
- Закрытые данные унаследованные от CollapsibleContainer
ref CollapsibleHeader m_CollapsibleHeader
 
bool m_Hidden
 

Подробное описание

Конструктор(ы)

◆ AttachmentCategoriesContainer()

void AttachmentCategoriesContainer ( LayoutHolder parent,
int sort = -1 )
inlineprotected
8 {
10 }
ref map< string, int > m_CategorySlotIndex
Definition AttachmentCategoriesContainer.c:3
Definition EntityAI.c:95

Перекрестные ссылки m_CategorySlotIndex.

Методы

◆ CanDisplayAnyCategory()

override bool CanDisplayAnyCategory ( )
inlineprotected
182 {
183 int count = m_Body.Count();
185 for (int i = m_SlotsCount; i < count; i++)
186 {
187 if (Class.CastTo(row,m_Body[i]) && m_Entity.CanDisplayAttachmentCategory( row.GetCategoryIdentifier() ))
188 {
189 return true;
190 }
191 }
192 return super.CanDisplayAnyCategory();
193 }
EntityAI m_Entity
Definition ActionDebug.c:11
int m_SlotsCount
Definition AttachmentCategoriesContainer.c:4
Definition AttachmentCategoriesRow.c:2
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.

Перекрестные ссылки Class::CastTo(), m_Entity и m_SlotsCount.

Используется в IsDisplayable() и UpdateRadialIcon().

◆ CanOpenCloseContainerEx()

override bool CanOpenCloseContainerEx ( EntityAI focusedEntity)
inlineprotected
520 {
521 if (m_OpenedContainers.Count() > m_ActiveIndex)
522 {
524 SlotsIcon icon = GetFocusedSlotsIcon();
525
526 if (icon)
527 {
528 c = ClosableContainer.Cast(icon.GetContainer());
529 }
530
531 if (c && c.IsDisplayable())
532 {
533 return true;
534 }
535 }
536
537 return false;
538 }
Definition ContainerWithCargo.c:2
Definition SlotsIcon.c:2

◆ CanSplitEx()

override bool CanSplitEx ( EntityAI focusedEntity)
inlineprotected
541 {
542 return false;
543 }

◆ Close()

override void Close ( )
inlineprotected
485 {
486 //ItemManager.GetInstance().SetDefaultOpenState( m_Entity.GetType(), false );
487 super.Close();
488
491 {
493 }
494 else if (m_SlotIcon && m_SlotIcon.GetObject())
495 {
496 icon = m_SlotIcon;
497 }
498 /*else
499 {
500 Print("Dbg | no object in icon here!");
501 }
502 */
503
504 SetOpenForSlotIcon(false,icon);
505 OnHide();
506 }
SlotsIcon m_CargoSlotsIcon
Definition AttachmentCategoriesContainer.c:5
override void OnHide()
Definition AttachmentCategoriesContainer.c:508
Object GetObject()
Definition SlotsIcon.c:362

Перекрестные ссылки SlotsIcon::GetObject(), m_CargoSlotsIcon и OnHide().

◆ CollapseButtonOnMouseButtonDown()

override void CollapseButtonOnMouseButtonDown ( Widget w)
inlineprotected
439 {
440 if( !m_Hidden )
441 {
442 for (int i = 1; i < m_Body.Count(); i++)
443 {
444 m_Body.Get( i ).OnHide();
445 Container c = Container.Cast(m_Body.Get(i));
446 if (c)
447 {
448 c.Close();
449 }
450 }
451
452 //m_Hidden = true;
453 OnHide();
454 }
455 else
456 {
457 //m_Hidden = false;
458 OnShow();
459 }
460 m_Closed = m_Hidden;
461
464 {
465 m_CollapsibleHeader.SetHeaderVisible(true);
466 }
467
469 RecomputeOpenedContainers();
470 }
void SetCollapsibleHeaderArrowState(bool open)
Definition CollapsibleContainer.c:186
override void OnShow()
Definition CollapsibleContainer.c:36
ref CollapsibleHeader m_CollapsibleHeader
Definition CollapsibleContainer.c:3
void UpdateCollapseButtons()
Definition CollapsibleContainer.c:91
bool m_Hidden
Definition CollapsibleContainer.c:4
Definition CargoContainer.c:3

Перекрестные ссылки CollapsibleContainer::m_CollapsibleHeader, CollapsibleContainer::m_Hidden, OnHide(), CollapsibleContainer::OnShow(), CollapsibleContainer::SetCollapsibleHeaderArrowState() и CollapsibleContainer::UpdateCollapseButtons().

◆ DraggingOverHeader()

override void DraggingOverHeader ( Widget w,
int x,
int y,
Widget receiver )
inlineprotected
408 {
409 if( w == null )
410 {
411 return;
412 }
413 ItemPreviewWidget iw = ItemPreviewWidget.Cast( w.FindAnyWidget("Render") );
414 if(!iw)
415 {
416 string name = w.GetName();
417 name.Replace("PanelWidget", "Render");
418 iw = ItemPreviewWidget.Cast( w.FindAnyWidget(name) );
419 }
420 if(!iw)
421 {
422 iw = ItemPreviewWidget.Cast( w );
423 }
424 if( !iw || !iw.GetItem() )
425 {
426 return;
427 }
428
429 ItemManager.GetInstance().ShowSourceDropzone( iw.GetItem() );
431 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
Definition ColorManager.c:2
static ColorManager GetInstance()
Definition ColorManager.c:27
static int RED_COLOR
Definition ColorManager.c:16
Definition ItemManager.c:2
static ItemManager GetInstance()
Definition ItemManager.c:283
Definition gameplay.c:276

Перекрестные ссылки ColorManager::GetInstance(), ItemManager::GetInstance(), name и ColorManager::RED_COLOR.

◆ ExpandCollapseContainer()

override void ExpandCollapseContainer ( )
inlineprotected
243 {
244 if (m_OpenedContainers.Count() > m_ActiveIndex)
245 {
246 //c - container where selected icon is part of
247 Container c = Container.Cast(m_OpenedContainers.Get( m_ActiveIndex ));
248 //cc - container connected to selected icon (this container will be close/open)
250 //icon - selected icon
251 SlotsIcon icon = c.GetFocusedSlotsIcon();
252
253 if (icon)
254 {
255 cc = ClosableContainer.Cast(icon.GetContainer());
256 }
257
258 if (cc)
259 {
260
261 cc.Toggle();
262 RecomputeOpenedContainers();
263 }
264 }
265 }

◆ GetAttachmentCategoriesCount()

int GetAttachmentCategoriesCount ( string config_path)
inlineprotected
148 {
149 return GetGame().ConfigGetChildrenCount( config_path );
150 }
proto native CGame GetGame()

Перекрестные ссылки GetGame().

Используется в InitGhostSlots() и InitIconsContainers().

◆ GetAttachmentCategory()

string GetAttachmentCategory ( string config_path_attachment_categories,
int i )
inlineprotected
212 {
213 string attachment_category;
215 return attachment_category;
216 }

Перекрестные ссылки GetGame().

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

◆ GetCargoSlotsIcon()

SlotsIcon GetCargoSlotsIcon ( )
inlineprotected
159 {
160 return m_CargoSlotsIcon;
161 }

Перекрестные ссылки m_CargoSlotsIcon.

◆ GetIconName()

string GetIconName ( string config_path_attachment_categories,
string attachment_category )
inlineprotected
219 {
221 string icon_name;
222 GetGame().ConfigGetText(icon_path, icon_name);
223 return icon_name;
224 }

Перекрестные ссылки GetGame().

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

◆ GetSlotsContainer()

SlotsContainer GetSlotsContainer ( int icons_row)
inlineprotected
153 {
155 return items_cont.GetSlotsContainer();
156 }
Definition AttachmentCategoriesSlotsContainer.c:2

Используется в InitGhostSlots() и ShowInSlots().

◆ GetViewIndex()

int GetViewIndex ( string config_path_attachment_categories,
string attachment_category )
inlineprotected
227 {
229 return GetGame().ConfigGetInt( preview_path );;
230 }

Перекрестные ссылки GetGame().

◆ InitGhostSlots()

void InitGhostSlots ( )
inlineprotected
305 {
306 string type = m_Entity.GetType();
307 string config_path_attachment_categories = "CfgVehicles " + type + " GUIInventoryAttachmentsProps";
308
310
313 string attachment_category;
314 string icon_name;
315
316 for (int i = 0; i < attachments_categories_count; i++)
317 {
321
322 if ( items_cont )
323 {
324 int slot_number = i % ITEMS_IN_ROW;
326 icon = items_cont.GetSlotIcon( slot_number );
327 icon.GetGhostSlot().SetFlags( WidgetFlags.IGNOREPOINTER );
328
330
332 string name;
333
334 GetGame().ConfigGetText(config,name);
335 icon.SetSlotDisplayName(name);
336
338
339 ar = new AttachmentCategoriesRow( this, -1 );
341
342 //Insert(ar);
343 ar.SetSlotIcon(icon);
344 //icon.SetContainer(ar);
345
346 icon.GetRadialIconPanel().Show( true );
347 ar.Open();
348 icon.SetContainer(ar);
349 Insert(ar);
350 }
351 }
352
353 if ( m_Entity.GetInventory().GetCargo() )
354 {
356 if ( items_cont )
357 {
359 icon.GetGhostSlot().Show( true );
360 icon.GetGhostSlot().LoadImageFile( 0, StaticGUIUtils.VerifyIconImageString(StaticGUIUtils.IMAGESETGROUP_INVENTORY,m_Entity.ConfigGetString("GUIInventoryCargoIcon")) );
361 icon.SetSlotDisplayName(m_Entity.ConfigGetString("GUIInventoryCargoName"));
362 icon.GetGhostSlot().SetFlags( WidgetFlags.IGNOREPOINTER );
363
364 icon.GetRadialIconPanel().Show( true );
365 icon.GetMainWidget().Show( true );
366
367 ContainerWithCargo iwc = new ContainerWithCargo( this, -1 );
368 iwc.Get( 0 ).GetRootWidget().ClearFlags( WidgetFlags.DRAGGABLE );
369 iwc.SetEntity( m_Entity, 0, false );
370 iwc.SetSlotIcon( icon );
371 iwc.Open();
372
373 icon.SetContainer(iwc);
375 }
376 }
377
378 RecomputeOpenedContainers();
379 }
const int ITEMS_IN_ROW
Definition Attachments.c:1
int GetAttachmentCategoriesCount(string config_path)
Definition AttachmentCategoriesContainer.c:147
void LoadAttachmentCategoriesIcon(SlotsContainer items_cont, string icon_name, int slot_number)
Definition AttachmentCategoriesContainer.c:139
string GetIconName(string config_path_attachment_categories, string attachment_category)
Definition AttachmentCategoriesContainer.c:218
string GetAttachmentCategory(string config_path_attachment_categories, int i)
Definition AttachmentCategoriesContainer.c:211
SlotsContainer GetSlotsContainer(int icons_row)
Definition AttachmentCategoriesContainer.c:152
override void Insert(LayoutHolder container, int pos=-1, bool immedUpdate=true)
Definition CollapsibleContainer.c:66
Definition SlotsContainer.c:2
Definition StaticGUIUtils.c:2
static const int IMAGESETGROUP_INVENTORY
Definition StaticGUIUtils.c:3
static string VerifyIconImageString(int imageset_group=IMAGESETGROUP_INVENTORY, string icon_name="")
Checks for improperly formated, legacy image names and corrects them to default format.
Definition StaticGUIUtils.c:7
WidgetFlags
Definition EnWidgets.c:58

Перекрестные ссылки GetAttachmentCategoriesCount(), GetAttachmentCategory(), GetGame(), GetIconName(), GetSlotsContainer(), StaticGUIUtils::IMAGESETGROUP_INVENTORY, CollapsibleContainer::Insert(), ITEMS_IN_ROW, LoadAttachmentCategoriesIcon(), m_CargoSlotsIcon, m_CategorySlotIndex, m_Entity, m_SlotsCount, name и StaticGUIUtils::VerifyIconImageString().

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

◆ InitIconsContainers()

void InitIconsContainers ( )
inlineprotected
273 {
274 m_SlotsCount = 0;
275
276 string type = m_Entity.GetType();
277 string config_path_attachment_categories = "CfgVehicles " + type + " GUIInventoryAttachmentsProps";
280 if (m_Entity.GetInventory().GetCargo())
281 {
283 }
286 {
287 row_count++;
288 }
289 for ( int i = 0; i < row_count; i++ )
290 {
292 m_Body.Insert( items_cont );
293 m_OpenedContainers.Insert( items_cont );
294
295 //TODO MW find better way
296 if (i == ( row_count - 1 ) && categories_count % ITEMS_IN_ROW != 0)
297 items_cont.GetSlotsContainer().SetColumnCount( categories_count % ITEMS_IN_ROW );
298 else
299 items_cont.GetSlotsContainer().SetColumnCount( ITEMS_IN_ROW );
300 }
302 }

Перекрестные ссылки GetAttachmentCategoriesCount(), ITEMS_IN_ROW, m_Entity и m_SlotsCount.

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

◆ IsDisplayable()

override bool IsDisplayable ( )
inlineprotected
35 {
36 return !IsEmpty() || CanDisplayAnyCategory();
37 }
override bool CanDisplayAnyCategory()
Definition AttachmentCategoriesContainer.c:181
override bool IsEmpty()
Definition CargoContainer.c:768

Перекрестные ссылки CanDisplayAnyCategory() и Container::IsEmpty().

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

◆ IsHeaderActive()

bool IsHeaderActive ( )
inlineprotected
268 {
269 return m_CollapsibleHeader.IsActive();
270 }

Перекрестные ссылки CollapsibleContainer::m_CollapsibleHeader.

◆ LoadAttachmentCategoriesIcon()

void LoadAttachmentCategoriesIcon ( SlotsContainer items_cont,
string icon_name,
int slot_number )
inlineprotected
140 {
141 SlotsIcon icon = items_cont.GetSlotIcon( slot_number );
142 ImageWidget image_widget = icon.GetGhostSlot();
143 image_widget.Show( true );
144 image_widget.LoadImageFile( 0, StaticGUIUtils.VerifyIconImageString(StaticGUIUtils.IMAGESETGROUP_INVENTORY,icon_name) ); //icon_name must be in format "set:<setname> image:<imagename>"
145 }

Перекрестные ссылки StaticGUIUtils::IMAGESETGROUP_INVENTORY и StaticGUIUtils::VerifyIconImageString().

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

◆ MouseClick()

void MouseClick ( Widget w)
inlineprotected
233 {
235 w.GetUserData(icon);
236
237 ClosableContainer c = ClosableContainer.Cast(icon.GetContainer());
238 if (c)
239 c.Toggle();
240 }

◆ OnDropReceivedFromHeader()

override void OnDropReceivedFromHeader ( Widget w,
int x,
int y,
Widget receiver )
inlineprotected
383 {
384 ItemPreviewWidget iw = ItemPreviewWidget.Cast( w.FindAnyWidget("Render") );
385 if(!iw)
386 {
387 string name = w.GetName();
388 name.Replace("PanelWidget", "Render");
389 iw = ItemPreviewWidget.Cast( w.FindAnyWidget(name) );
390 }
391 if(!iw)
392 {
393 iw = ItemPreviewWidget.Cast( w );
394 }
395 if( !iw.GetItem() )
396 return;
397 if( m_Entity.GetInventory().CanAddAttachment( iw.GetItem() ) && iw.GetItem().GetInventory().CanRemoveEntity() )
398 {
399 GetGame().GetPlayer().PredictiveTakeEntityToTargetAttachment( m_Entity, iw.GetItem() );
400 }
401 else if( m_Entity.GetInventory().CanAddEntityToInventory( iw.GetItem() ) && iw.GetItem().GetInventory().CanRemoveEntity() )
402 {
403 GetGame().GetPlayer().PredictiveTakeEntityToTargetInventory( m_Entity, FindInventoryLocationType.ANY, iw.GetItem() );
404 }
405 }
FindInventoryLocationType
flags for searching locations in inventory
Definition InventoryLocation.c:16

Перекрестные ссылки GetGame(), m_Entity и name.

◆ OnHide()

override void OnHide ( )
inlineprotected
509 {
511 {
512 bool b1 = !m_SlotIcon && !m_CargoSlotsIcon;
513 bool b2 = (!m_SlotIcon || !m_SlotIcon.IsVisible()) && m_CargoSlotsIcon && m_CargoSlotsIcon.IsVisible();
514 m_CollapsibleHeader.SetHeaderVisible(b1 || b2);
515 }
516 super.OnHide();
517 }
override bool IsVisible()
Definition SlotsIcon.c:131

Перекрестные ссылки SlotsIcon::IsVisible(), m_CargoSlotsIcon и CollapsibleContainer::m_CollapsibleHeader.

Используется в Close() и CollapseButtonOnMouseButtonDown().

◆ Open()

override void Open ( )
inlineprotected
473 {
474 if( IsDisplayable() )
475 {
476 super.Open();
477 //ItemManager.GetInstance().SetDefaultOpenState( m_Entity.GetType(), true );
478 SetOpenForSlotIcon(true);
479 OnShow();
480 //m_Parent.m_Parent.Refresh();
481 }
482 }
override bool IsDisplayable()
Definition AttachmentCategoriesContainer.c:34

Перекрестные ссылки IsDisplayable() и CollapsibleContainer::OnShow().

◆ SetEntity()

void SetEntity ( EntityAI entity)
inlineprotected
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]
Definition PluginRemotePlayerDebugClient.c:14
Widget m_Parent
Definition SizeToChild.c:92
void InitIconsContainers()
Definition AttachmentCategoriesContainer.c:272
void SetHeaderName()
Definition AttachmentCategoriesContainer.c:29
void InitGhostSlots()
Definition AttachmentCategoriesContainer.c:304
Definition WidgetEventHandler.c:2
static WidgetEventHandler GetInstance()
Definition WidgetEventHandler.c:22

Перекрестные ссылки WidgetEventHandler::GetInstance(), InitGhostSlots(), InitIconsContainers(), m_Entity, m_Parent, m_RootWidget и SetHeaderName().

◆ SetHeaderName()

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

Перекрестные ссылки CollapsibleContainer::m_CollapsibleHeader и m_Entity.

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

◆ ShowInSlots()

void ShowInSlots ( string category,
bool show )
inlineprotected
164 {
167
169 if( items_cont )
170 {
171 Widget icon_widget = items_cont.GetSlotIcon( slot_number ).GetMainWidget();
172 if( icon_widget )
173 icon_widget.Show( show );
174 icon_widget.GetParent().Update();
175 icon_widget.GetParent().GetParent().Update();
176 icon_widget.GetParent().GetParent().GetParent().Update();
177 }
178 }
Definition EnWidgets.c:190

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

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

◆ UpdateInterval()

override void UpdateInterval ( )
inlineprotected
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 {
69 row.OnShow();
70 }
71 }
72 else
73 {
74 ShowInSlots( row.GetCategoryIdentifier(), false );
75 if (row.IsVisible())
76 {
77 row.OnHide();
78 }
79 }
80 }
81 else
82 {
83 ShowInSlots( row.GetCategoryIdentifier(), false );
84 if (row.IsVisible())
85 {
86 row.OnHide();
87 }
88 }
89 row.UpdateInterval();
90 }
91 else
92 {
93 ContainerWithCargo cargo = ContainerWithCargo.Cast(m_Body[i]);
94 if (cargo)
95 {
96 if (m_Entity.CanDisplayCargo())
97 {
98 m_CargoSlotsIcon.m_MainWidget.Show(true);
99 if (!cargo.IsVisible())
100 {
101 cargo.OnShow();
102 }
103 }
104 else
105 {
106 m_CargoSlotsIcon.m_MainWidget.Show(false);
107 if (cargo.IsVisible())
108 {
109 cargo.OnHide();
110 }
111 }
112 cargo.UpdateInterval();
113 }
114 RecomputeOpenedContainers();
115
116 }
117
118 }
119 for ( i = 0; i < m_SlotsCount; i++)
120 {
122 {
123 if (slots.IsDisplayable())
124 {
125 slots.OnShow();
126 }
127 else
128 {
129 slots.OnHide();
130 }
131 }
132 }
133 }
134 GetMainWidget().Show( true );
135 }
136 }
137 }
void ShowInSlots(string category, bool show)
Definition AttachmentCategoriesContainer.c:163

Перекрестные ссылки m_CargoSlotsIcon, CollapsibleContainer::m_CollapsibleHeader, m_Entity, CollapsibleContainer::m_Hidden, m_SlotsCount и ShowInSlots().

◆ UpdateRadialIcon()

override void UpdateRadialIcon ( )
inlineprotected
196 {
197 if ( m_SlotIcon )
198 {
199 if (m_Entity.CanDisplayCargo() || CanDisplayAnyCategory())
200 {
201 m_SlotIcon.GetRadialIconPanel().Show( true );
202 SetOpenForSlotIcon(!m_Hidden);
203 }
204 else
205 {
206 m_SlotIcon.GetRadialIconPanel().Show( false );
207 }
208 }
209 }

Перекрестные ссылки CanDisplayAnyCategory(), m_Entity и CollapsibleContainer::m_Hidden.

Поля

◆ m_CargoSlotsIcon

SlotsIcon m_CargoSlotsIcon
protected

◆ m_CategorySlotIndex

ref map<string, int> m_CategorySlotIndex
protected

◆ m_SlotsCount

int m_SlotsCount
protected

Объявления и описания членов класса находятся в файле: