Files
wwdpublic/Content.Client/MapText/MapTextComponent.cs
Julian Giebel 74072829b2 Implement map text (#28705)
(cherry picked from commit de07c291de827bd8a2e843974d4362a13be3bb89)
2026-02-10 15:18:38 +03:00

21 lines
616 B
C#

using Content.Shared.MapText;
using Robust.Client.Graphics;
namespace Content.Client.MapText;
[RegisterComponent]
public sealed partial class MapTextComponent : SharedMapTextComponent
{
/// <summary>
/// The font that gets cached on component init or state changes
/// </summary>
[ViewVariables]
public VectorFont? CachedFont;
/// <summary>
/// The text currently being displayed. This is either <see cref="SharedMapTextComponent.Text"/> or the
/// localized text <see cref="SharedMapTextComponent.LocText"/> or
/// </summary>
public string CachedText = string.Empty;
}