(965c31410) v0.10.4.0

This commit is contained in:
Joonas Rikkonen
2020-07-30 13:00:09 +03:00
parent eeac247a8e
commit 4978af3d60
539 changed files with 45803 additions and 25359 deletions
@@ -492,7 +492,7 @@ namespace Barotrauma
}
}
public Vector2 MeasureString(string text)
public Vector2 MeasureString(string text, bool removeExtraSpacing = false)
{
if (text == null)
{
@@ -501,7 +501,16 @@ namespace Barotrauma
float currentLineX = 0.0f;
Vector2 retVal = Vector2.Zero;
retVal.Y = baseHeight * 1.8f;
if (!removeExtraSpacing)
{
retVal.Y = baseHeight * 1.8f;
}
else
{
retVal.Y = baseHeight;
}
for (int i = 0; i < text.Length; i++)
{
if (text[i] == '\n')