2020-01-09 00:27:52 +01:00
|
|
|
using Robust.Client.UserInterface.Controls;
|
|
|
|
|
using Robust.Shared.Utility;
|
|
|
|
|
|
2023-08-18 07:41:48 +03:00
|
|
|
namespace Content.Client.Message;
|
|
|
|
|
|
|
|
|
|
public static class RichTextLabelExt
|
2020-01-09 00:27:52 +01:00
|
|
|
{
|
2023-08-18 07:41:48 +03:00
|
|
|
public static RichTextLabel SetMarkup(this RichTextLabel label, string markup)
|
2020-01-09 00:27:52 +01:00
|
|
|
{
|
2023-08-18 07:41:48 +03:00
|
|
|
label.SetMessage(FormattedMessage.FromMarkup(markup));
|
|
|
|
|
return label;
|
2020-01-09 00:27:52 +01:00
|
|
|
}
|
|
|
|
|
}
|