Files
tbd-station-14/Content.Client/Info/ServerInfo.cs
2022-03-13 19:33:19 -07:00

32 lines
808 B
C#

using Content.Client.Changelog;
using Content.Client.Credits;
using Content.Client.Links;
using Robust.Client.UserInterface;
using Robust.Client.UserInterface.Controls;
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Robust.Shared.Utility;
namespace Content.Client.Info
{
public sealed class ServerInfo : BoxContainer
{
private readonly RichTextLabel _richTextLabel;
public ServerInfo()
{
Orientation = LayoutOrientation.Vertical;
_richTextLabel = new RichTextLabel
{
VerticalExpand = true
};
AddChild(_richTextLabel);
}
public void SetInfoBlob(string markup)
{
_richTextLabel.SetMessage(FormattedMessage.FromMarkup(markup));
}
}
}