More StyleBox UiScale fixes. (#4175)

This commit is contained in:
Leon Friedrich
2023-07-09 14:19:42 +12:00
committed by GitHub
parent 1399b71572
commit 623aa6a0ae
10 changed files with 131 additions and 38 deletions

View File

@@ -40,6 +40,11 @@ namespace Robust.Shared.Maths
Right = right;
Bottom = bottom;
}
public Thickness Scale(float scale)
{
return new Thickness(Left * scale, Top * scale, Right * scale, Bottom * scale);
}
[SuppressMessage("ReSharper", "CompareOfFloatsByEqualityOperator")]
public readonly bool Equals(Thickness other)