removed Vector2D_2

This commit is contained in:
lewd_alt
2026-06-14 11:40:13 -05:00
parent 31ed0b26a3
commit 74e1cbc7d9
5 changed files with 15 additions and 35 deletions

View File

@@ -97,9 +97,9 @@ namespace _2DGAMELIB
if (!string.IsNullOrEmpty(_shapePartT.Text))
{
_shapePartT.SetRectSize(new Vector2D(Width, 10.0));
Vector2D_2 stringRect = _shapePartT.GetStringRect(Are.DisplayUnitScale, Are.DisplayGraphics);
double x = ((stringRect.v2.X > Min) ? stringRect.v2.X : Min) + 0.07;
_shapePartT.SetRectSize(new Vector2D(x, stringRect.v2.Y));
double[] stringRect = _shapePartT.GetStringRect(Are.DisplayUnitScale, Are.DisplayGraphics);
double x = ((stringRect[2] > Min) ? stringRect[2] : Min) + 0.07;
_shapePartT.SetRectSize(new Vector2D(x, stringRect[3]));
}
else
{
@@ -107,7 +107,6 @@ namespace _2DGAMELIB
_shapePartT.SetRectSize(new Vector2D(x2, Min));
}
_shapePartT.GetOP()[0].ps[0] = new Vector2D(0.0, 0.0);
_shapePartT.GetOP()[0].ps[1] = new Vector2D(_shapePartT.GetRectSize().X, 0.0);
_shapePartT.GetOP()[0].ps[2] = new Vector2D(_shapePartT.GetRectSize().X, _shapePartT.GetRectSize().Y);