2021-06-21 02:13:54 +02:00
|
|
|
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
|
|
|
{
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class ServerInfo : BoxContainer
|
2019-10-18 14:28:39 +02:00
|
|
|
{
|
|
|
|
|
private readonly RichTextLabel _richTextLabel;
|
|
|
|
|
|
2020-02-26 16:42:12 +01:00
|
|
|
public ServerInfo()
|
2019-10-18 14:28:39 +02:00
|
|
|
{
|
2021-09-19 19:56:04 +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)
|
|
|
|
|
{
|
2024-09-01 14:00:53 +03:00
|
|
|
_richTextLabel.SetMessage(FormattedMessage.FromMarkupOrThrow(markup));
|
2019-10-18 14:28:39 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|