RichTextLabelExt update (#19269)

This commit is contained in:
faint 2023-08-18 07:41:48 +03:00 committed by GitHub
parent 83fa7a7835
commit 9e3eb08f5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -1,13 +1,13 @@
using Robust.Client.UserInterface.Controls;
using Robust.Shared.Utility;
namespace Content.Client.Message
namespace Content.Client.Message;
public static class RichTextLabelExt
{
public static class RichTextLabelExt
public static RichTextLabel SetMarkup(this RichTextLabel label, string markup)
{
public static void SetMarkup(this RichTextLabel label, string markup)
{
label.SetMessage(FormattedMessage.FromMarkup(markup));
}
label.SetMessage(FormattedMessage.FromMarkup(markup));
return label;
}
}