Content PR for RichText refactor (#13772)

* Fix examine system after formatted text refactor
Implement key bind markup tag

* Add font prototype definitions

* Update submodule.

---------

Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
This commit is contained in:
Julian Giebel
2023-02-16 00:10:05 +01:00
committed by GitHub
parent c31af2e488
commit 5e8e848d52
6 changed files with 78 additions and 12 deletions

View File

@@ -244,9 +244,15 @@ namespace Content.Client.Examine
return;
}
foreach (var msg in message.Tags.OfType<FormattedMessage.TagText>())
foreach (var msg in message.Nodes)
{
if (string.IsNullOrWhiteSpace(msg.Text)) continue;
if (msg.Name != null)
continue;
var text = msg.Value.StringValue ?? "";
if (string.IsNullOrWhiteSpace(text))
continue;
var richLabel = new RichTextLabel() { Margin = new Thickness(4, 4, 0, 4)};
richLabel.SetMessage(message);