1219 {
1223 m_ActiveIndex = 0;
1224 if( entity.GetSlotsCountCorrect() > 0 )
1225 {
1226 m_Atts =
new Attachments(
this, entity );
1227 m_Atts.InitAttachmentGrid( 1 );
1232 }
1233 else
1234 {
1236 }
1237
1238 if( entity.GetInventory().GetCargo() )
1239 {
1245 }
1246
1248 {
1250 {
1252 if( item )
1254 }
1255 }
1256
1258 {
1259 bool hideCargo =
m_Entity.GetInventory().IsInventoryLockedForLockType( HIDE_INV_FROM_SCRIPT ) || !
m_Entity.CanDisplayCargo() || m_ForcedHide;
1261 {
1263 }
1265 {
1267 }
1268 }
1269
1271
1272 RecomputeOpenedContainers();
1275 }
void CargoContainer(LayoutHolder parent, bool is_attachment=false)
void AttachmentRemoved(EntityAI item, string slot, EntityAI parent)
ref HandsHeader m_CollapsibleHeader
void AttachmentAdded(EntityAI item, string slot, EntityAI parent)
ref CargoContainer m_CargoGrid
override void Insert(LayoutHolder container, int pos=-1, bool immedUpdate=true)
ref array< int > m_AttachmentSlotsSorted