(78888f7fb) Changes to reactor interface to make it adapt better to different text lengths

This commit is contained in:
Joonas Rikkonen
2019-04-29 21:13:36 +03:00
parent ad298c69c2
commit ce7d36d9e2
3 changed files with 112 additions and 37 deletions
@@ -341,6 +341,14 @@ namespace Barotrauma
if (OutlineColor.A * currColor.A > 0.0f) GUI.DrawRectangle(spriteBatch, rect, OutlineColor * (currColor.A / 255.0f), false);
}
/// <summary>
/// Set the text scale of the GUITextBlocks so that they all use the same scale and can fit the text within the block.
/// </summary>
public static void AutoScaleAndNormalize(params GUITextBlock[] textBlocks)
{
AutoScaleAndNormalize(textBlocks.AsEnumerable<GUITextBlock>());
}
/// <summary>
/// Set the text scale of the GUITextBlocks so that they all use the same scale and can fit the text within the block.
/// </summary>