Add Inventory Clear functions. Prep Monster Loot and Stage Loot inventory types.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user