#pragma once #include "Crawler.h" #include "DEFINES.h" #include "olcPixelGameEngine.h" #include "safemap.h" #include "Item.h" #include "MenuItemButton.h" INCLUDE_GFX typedef Attribute A; const Menu Menu::InitializeInventoryWindow(){ constexpr int invWidth=5; constexpr int invHeight=3; constexpr int totalItemSlots=invWidth*invHeight; constexpr int itemSpacing=8; constexpr int buttonSize=24; constexpr int totalSpacing=buttonSize+itemSpacing; Menu inventoryWindow(CENTERED,{totalSpacing*invWidth,totalSpacing*(invHeight+1)}); MenuFunc useItemFunc=[](MenuFuncData data){ }; for(int y=0;y