Document.cs 772 B

1234567891011121314151617181920212223242526272829
  1. using Robust.Client.UserInterface;
  2. using Robust.Client.UserInterface.Controls;
  3. using Robust.Shared.Utility;
  4. using System.Diagnostics.CodeAnalysis;
  5. namespace Content.Client.Guidebook.Richtext;
  6. /// <summary>
  7. /// A document, containing arbitrary text and UI elements.
  8. /// </summary>
  9. public sealed class Document : BoxContainer, IDocumentTag
  10. {
  11. public Document()
  12. {
  13. Orientation = LayoutOrientation.Vertical;
  14. }
  15. public bool TryParseTag(Dictionary<string, string> args, [NotNullWhen(true)] out Control? control)
  16. {
  17. DebugTools.Assert(args.Count == 0);
  18. control = this;
  19. return true;
  20. }
  21. }
  22. public interface IDocumentTag
  23. {
  24. public bool TryParseTag(Dictionary<string, string> args, [NotNullWhen(true)] out Control? control);
  25. }