v1.3.0.1 (Epic Store release)

This commit is contained in:
Regalis11
2024-03-28 18:34:33 +02:00
parent 81ca8637be
commit 3791670c42
269 changed files with 13160 additions and 2966 deletions
@@ -19,12 +19,14 @@ namespace Barotrauma
public override bool Loaded => nestedStr.Loaded;
protected override bool MustRetrieveValue()
{
return base.MustRetrieveValue() || cachedFont != font.Value || cachedFont.Size != font.Size;
return base.MustRetrieveValue() || cachedFont != font.Value || cachedFont?.Size != font.Size;
}
public override void RetrieveValue()
{
cachedValue = ToolBox.LimitString(nestedStr.Value, font.Value, maxWidth);
cachedValue = font.Value != null
? ToolBox.LimitString(nestedStr.Value, font.Value, maxWidth)
: nestedStr.Value;
cachedFont = font.Value;
UpdateLanguage();
}