1288 {
1289 int slot_id = InventorySlots.GetSlotIdFromString( slot );
1290 int sort = -1;
1291 Attachments att_cont = null;
1293
1294 if( item.GetInventory().GetAttachmentSlotsCount() > 0 )
1295 {
1296 att_cont = new Attachments( this, item );
1299
1302
1306 Inventory.GetInstance().UpdateConsoleToolbar();
1307 }
1308
1309 if( item.GetInventory().GetCargo() )
1310 {
1313 cont.GetRootWidget().SetSort( sort );
1314 cont.SetEntity( item );
1315
1317
1321 Inventory.GetInstance().UpdateConsoleToolbar();
1322 }
1323
1324 if (att_cont)
1325 {
1327 if (cont)
1328 {
1329 cont.ShowFalseCargoHeader(false);
1330 cont.UpdateSize();
1332 }
1333 }
1334 else if (cont)
1335 {
1336 cont.SetAlternateFalseTextHeaderWidget(null);
1337 }
1338
1339 RecomputeOpenedContainers();
1340 }
void Inventory(LayoutHolder parent)
AttachmentsWrapper GetWrapper()
TextWidget GetFalseHeaderTextWidget()
void InitAttachmentGrid(int att_row_index)
void ShowFalseAttachmentsHeader(bool show)
void CargoContainer(LayoutHolder parent, bool is_attachment=false)
ref map< EntityAI, ref CargoContainer > m_AttachmentCargos
ref map< EntityAI, AttachmentsWrapper > m_AttachmentAttachmentsContainers
ref map< EntityAI, ref Attachments > m_AttachmentAttachments
override void Insert(LayoutHolder container, int pos=-1, bool immedUpdate=true)
ref array< int > m_AttachmentSlotsSorted