6
2026-01-24 12:49:55 +03:00

30 lines
772 B
C#

using Robust.Client.UserInterface;
using Robust.Client.UserInterface.Controls;
using Robust.Shared.Utility;
using System.Diagnostics.CodeAnalysis;
namespace Content.Client.Guidebook.Richtext;
/// <summary>
/// A document, containing arbitrary text and UI elements.
/// </summary>
public sealed class Document : BoxContainer, IDocumentTag
{
public Document()
{
Orientation = LayoutOrientation.Vertical;
}
public bool TryParseTag(Dictionary<string, string> args, [NotNullWhen(true)] out Control? control)
{
DebugTools.Assert(args.Count == 0);
control = this;
return true;
}
}
public interface IDocumentTag
{
public bool TryParseTag(Dictionary<string, string> args, [NotNullWhen(true)] out Control? control);
}