ServerInfo.cs 787 B

123456789101112131415161718192021222324252627282930
  1. using Content.Client.Changelog;
  2. using Content.Client.Credits;
  3. using Robust.Client.UserInterface;
  4. using Robust.Client.UserInterface.Controls;
  5. using Robust.Shared.IoC;
  6. using Robust.Shared.Localization;
  7. using Robust.Shared.Utility;
  8. namespace Content.Client.Info
  9. {
  10. public sealed class ServerInfo : BoxContainer
  11. {
  12. private readonly RichTextLabel _richTextLabel;
  13. public ServerInfo()
  14. {
  15. Orientation = LayoutOrientation.Vertical;
  16. _richTextLabel = new RichTextLabel
  17. {
  18. VerticalExpand = true
  19. };
  20. AddChild(_richTextLabel);
  21. }
  22. public void SetInfoBlob(string markup)
  23. {
  24. _richTextLabel.SetMessage(FormattedMessage.FromMarkupOrThrow(markup));
  25. }
  26. }
  27. }