MapTextComponent.cs 616 B

1234567891011121314151617181920
  1. using Content.Shared.MapText;
  2. using Robust.Client.Graphics;
  3. namespace Content.Client.MapText;
  4. [RegisterComponent]
  5. public sealed partial class MapTextComponent : SharedMapTextComponent
  6. {
  7. /// <summary>
  8. /// The font that gets cached on component init or state changes
  9. /// </summary>
  10. [ViewVariables]
  11. public VectorFont? CachedFont;
  12. /// <summary>
  13. /// The text currently being displayed. This is either <see cref="SharedMapTextComponent.Text"/> or the
  14. /// localized text <see cref="SharedMapTextComponent.LocText"/> or
  15. /// </summary>
  16. public string CachedText = string.Empty;
  17. }