Fix Perspective correction on ViewPort PGEX. Implement windowing system and remove sprite reliance from all menu components.

This commit is contained in:
2023-12-14 04:18:05 -06:00
parent 4bab1397dc
commit 7a46f79f2b
24 changed files with 225 additions and 278 deletions
-1
View File
@@ -84,5 +84,4 @@ void Menu::InitializeConsumableInventoryWindow(){
inventoryWindow->ADD("itemDescription",MenuLabel)(geom2d::rect<float>(vf2d{2,112.f},{windowSize.x-4,windowSize.y-108}),"",1,ComponentAttr::SHADOW)END;
auto okButton=inventoryWindow->ADD("OK Button",MenuComponent)({{windowSize.x/2-24,158.f},{48,12}},"Ok",[](MenuFuncData data){Menu::CloseMenu();return true;})END;
okButton->decal=true;
}