Files
wwdpublic/Content.Client/Info/ServerInfo.cs
Winkarst dda491ece4 Remove calls to FormattedMessage obsolete methods (#31706)
* Remove FormattedMessage obsolete methods

* Oops
2025-07-19 15:20:15 +10:00

35 lines
946 B
C#

using Content.Client.Changelog;
using Content.Client.Credits;
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)
{
// WD EDIT START
var message = FormattedMessage.FromMarkupOrThrow("[font=\"Bedstead\" size=12][color=#2f2f2f]" + markup + "[/color][/font]");
_richTextLabel.SetMessage(message);
// WD EDIT END
}
}
}