1289 {
1290 int slot_id = InventorySlots.GetSlotIdFromString( slot );
1291 int sort = -1;
1292 Attachments att_cont = null;
1294
1295 if( item.GetInventory().GetAttachmentSlotsCount() > 0 )
1296 {
1297 att_cont = new Attachments( this, item );
1300
1303
1307 Inventory.GetInstance().UpdateConsoleToolbar();
1308 }
1309
1310 if( item.GetInventory().GetCargo() )
1311 {
1314 cont.GetRootWidget().SetSort( sort );
1315 cont.SetEntity( item );
1316
1318
1322 Inventory.GetInstance().UpdateConsoleToolbar();
1323 }
1324
1325 if (att_cont)
1326 {
1328 if (cont)
1329 {
1330 cont.ShowFalseCargoHeader(false);
1331 cont.UpdateSize();
1333 }
1334 }
1335 else if (cont)
1336 {
1337 cont.SetAlternateFalseTextHeaderWidget(null);
1338 }
1339
1340 RecomputeOpenedContainers();
1341 }
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