Files
crystall-punk-14/Content.Client/Info/ServerInfo.cs

31 lines
787 B
C#
Raw Permalink Normal View History

using Content.Client.Changelog;
2021-06-09 22:19:39 +02:00
using Content.Client.Credits;
2021-02-25 09:50:45 +01:00
using Robust.Client.UserInterface;
2019-10-18 14:28:39 +02:00
using Robust.Client.UserInterface.Controls;
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Robust.Shared.Utility;
2021-06-09 22:19:39 +02:00
namespace Content.Client.Info
2019-10-18 14:28:39 +02:00
{
public sealed class ServerInfo : BoxContainer
2019-10-18 14:28:39 +02:00
{
private readonly RichTextLabel _richTextLabel;
public ServerInfo()
2019-10-18 14:28:39 +02:00
{
Orientation = LayoutOrientation.Vertical;
2019-10-18 14:28:39 +02:00
_richTextLabel = new RichTextLabel
{
2021-02-21 12:38:56 +01:00
VerticalExpand = true
2019-10-18 14:28:39 +02:00
};
AddChild(_richTextLabel);
}
public void SetInfoBlob(string markup)
{
_richTextLabel.SetMessage(FormattedMessage.FromMarkupOrThrow(markup));
2019-10-18 14:28:39 +02:00
}
}
}