Added ability to select a loadout item from the inventory menu screen.

This commit is contained in:
2023-11-13 21:26:34 -06:00
parent 7e371f6779
commit 1bf30f4392
34 changed files with 245 additions and 76 deletions
+2
View File
@@ -21,6 +21,8 @@ void Menu::InitializeInventoryWindow(){
Menu*inventoryWindow=CreateMenu(INVENTORY,CENTERED,windowSize);
inventoryWindow->I(A::LOADOUT_SLOT)=0;
InventoryScrollableWindowComponent*inventory=NEW InventoryScrollableWindowComponent(INVENTORY,{{1,0},{windowSize.x,float(totalSpacing*3-itemSpacing)}});
inventoryWindow->AddComponent("inventory",inventory);
Menu::AddInventoryListener(inventory,"Consumables");