Fix up all menu components to integrate with new view port system.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user