55 {
57 {
58 if(
m_Entity.GetInventory().IsInventoryLockedForLockType( HIDE_INV_FROM_SCRIPT ) ||
m_Hidden )
59 {
60 if( m_Body.Count() > 0 && !
m_Hidden )
62 HideContent();
63 GetMainWidget().Show( false );
64 }
65 else
66 {
67 if( m_Body.Count() > 0 && !
m_Hidden )
68 {
69 if( m_Body.Count() > 0 && !
m_Hidden )
71 int i;
73 {
74 AttachmentCategoriesRow row = AttachmentCategoriesRow.Cast( m_Body[i] );
75 if (row)
76 {
78 {
80 {
82 if (!row.IsVisible())
83 {
84 row.OnShow();
85 }
86 }
87 else
88 {
90 if (row.IsVisible())
91 {
92 row.OnHide();
93 }
94 }
95 }
96 else
97 {
99 if (row.IsVisible())
100 {
101 row.OnHide();
102 }
103 }
105 }
106 else
107 {
108 ContainerWithCargo cargo = ContainerWithCargo.Cast(m_Body[i]);
109 if (cargo)
110 {
112 {
114 if (!cargo.IsVisible())
115 {
116 cargo.OnShow();
117 }
118 }
119 else
120 {
122 if (cargo.IsVisible())
123 {
124 cargo.OnHide();
125 }
126 }
127 cargo.UpdateInterval();
128 }
129 RecomputeOpenedContainers();
130
131 }
132
133 }
135 {
136 AttachmentCategoriesSlotsContainer slots = AttachmentCategoriesSlotsContainer.Cast( m_Body[i] );
137 {
139 {
141 }
142 else
143 {
144 slots.OnHide();
145 }
146 }
147 }
148 }
149 GetMainWidget().Show( true );
150 }
151 }
152 }
void ShowInSlots(string category, bool show)
SlotsIcon m_CargoSlotsIcon
override void UpdateInterval()
string GetCategoryIdentifier()
override bool IsDisplayable()
override bool IsDisplayable()
ref CollapsibleHeader m_CollapsibleHeader