Fix up all menu components to integrate with new view port system.

This commit is contained in:
2023-12-14 05:53:46 -06:00
parent 44fcbc80cd
commit 38729877b8
9 changed files with 30 additions and 28 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ protected:
std::string quantityText="x"+std::to_string(itemRef.get().Amt());
vf2d quantityTextScale=rect.size/48.f;
vf2d textSize=vf2d(game->GetTextSizeProp(quantityText))*quantityTextScale;
vf2d drawPos=Menu::menus[parentMenu]->pos+parentPos+rect.pos+rect.size-textSize;
vf2d drawPos=parentPos+rect.pos+rect.size-textSize;
geom2d::rect<float>boundingBox={drawPos,textSize};
window.DrawShadowStringDecal(drawPos,quantityText,WHITE,BLACK,quantityTextScale,quantityTextScale.x);
}