v1.4.4.1 (Blood in the Water Update)

This commit is contained in:
Regalis11
2024-04-24 18:09:05 +03:00
parent 89b91d1c3e
commit ff1b8951a7
397 changed files with 15250 additions and 6479 deletions
@@ -143,6 +143,9 @@ namespace Barotrauma
}
}
/// <summary>
/// When enabled, clips the left side of the text if it's too long to fit in the box (i.e. allows you to enter longer texts without the text overflowing from the box).
/// </summary>
public bool OverflowClip
{
get { return textBlock.OverflowClip; }
@@ -325,7 +328,7 @@ namespace Barotrauma
textBlock.Text = text;
ClearSelection();
if (Text == null) textBlock.Text = "";
if (Text != "" && !Wrap)
if (Text != "")
{
if (maxTextLength != null)
{
@@ -334,7 +337,7 @@ namespace Barotrauma
textBlock.Text = Text.Substring(0, (int)maxTextLength);
}
}
else
else if (!Wrap)
{
while (ClampText && textBlock.Text.Length > 0 && Font.MeasureString(textBlock.Text).X * TextBlock.TextScale > (int)(textBlock.Rect.Width - textBlock.Padding.X - textBlock.Padding.Z))
{