Add Inventory Clear functions. Prep Monster Loot and Stage Loot inventory types.

This commit is contained in:
2023-11-20 22:56:35 -06:00
parent 6c16405908
commit 1745911eb5
7 changed files with 19 additions and 2 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ protected:
};
MenuItemButton*button=NEW MenuItemButton{parentMenu,{{float(totalSpacing*x),float(totalSpacing*y)},{float(buttonSize),float(buttonSize)}},Inventory::get("Consumables"),itemIndex,useItemFunc,parentMenu,"itemName","itemDescription"};
AddComponent(Menu::menus[parentMenu],"item"+std::to_string(itemIndex),button);
AddComponent(Menu::menus[parentMenu],"item_"+cat+"_"+std::to_string(itemIndex),button);
}else
if(components.size()>inv.size()){ //There are empty spots, so let's clean up.
RemoveEmptySlots();