Unstable 1.1.14.0
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#nullable enable
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
namespace Barotrauma
|
||||
{
|
||||
internal readonly struct CircuitBoxLabel
|
||||
{
|
||||
public LocalizedString Value { get; }
|
||||
|
||||
public Vector2 Size { get; }
|
||||
|
||||
public GUIFont Font { get; }
|
||||
|
||||
public CircuitBoxLabel(LocalizedString value, GUIFont font)
|
||||
{
|
||||
Value = value;
|
||||
Font = font;
|
||||
Size = font.MeasureString(font.ForceUpperCase ? value.Value.ToUpperInvariant() : value.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user