Files
crystall-punk-14/Content.Client/Info/InfoSection.xaml.cs

23 lines
573 B
C#
Raw Normal View History

using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.XAML;
using Robust.Shared.Utility;
namespace Content.Client.Info;
[GenerateTypedNameReferences]
public sealed partial class InfoSection : BoxContainer
{
public InfoSection(string title, string text, bool markup = false)
{
RobustXamlLoader.Load(this);
TitleLabel.Text = title;
if (markup)
2021-12-20 12:42:42 +01:00
Content.SetMessage(FormattedMessage.FromMarkup(text.Trim()));
else
Content.SetMessage(text);
}
}