288 {
290
292 string config_path_attachment_categories = "CfgVehicles " + type + " GUIInventoryAttachmentsProps";
294 int categories_count = attachments_categories_count;
295 if (
m_Entity.GetInventory().GetCargo())
296 {
297 categories_count++;
298 }
301 {
302 row_count++;
303 }
304 for ( int i = 0; i < row_count; i++ )
305 {
306 ref AttachmentCategoriesSlotsContainer items_cont = new AttachmentCategoriesSlotsContainer( this, i );
307 m_Body.Insert( items_cont );
308 m_OpenedContainers.Insert( items_cont );
309
310
311 if (i == ( row_count - 1 ) && categories_count %
ITEMS_IN_ROW != 0)
312 items_cont.GetSlotsContainer().SetColumnCount( categories_count %
ITEMS_IN_ROW );
313 else
314 items_cont.GetSlotsContainer().SetColumnCount(
ITEMS_IN_ROW );
315 }
317 }
int GetAttachmentCategoriesCount(string config_path)