Wrap objective briefing text (#24244)

This commit is contained in:
Kevin Zheng
2024-01-18 14:25:40 -08:00
committed by GitHub
parent d47052820c
commit 0d53dad58a
2 changed files with 5 additions and 2 deletions

View File

@@ -149,7 +149,10 @@ public sealed class CharacterUIController : UIController, IOnStateEntered<Gamepl
if (briefing != null)
{
var briefingControl = new ObjectiveBriefingControl();
briefingControl.Label.Text = briefing;
var text = new FormattedMessage();
text.PushColor(Color.Yellow);
text.AddText(briefing);
briefingControl.Label.SetMessage(text);
_window.Objectives.AddChild(briefingControl);
}

View File

@@ -2,5 +2,5 @@
xmlns="https://spacestation14.io"
xmlns:controls="clr-namespace:Content.Client.UserInterface.Systems.Objectives.Controls"
Orientation="Horizontal">
<Label Name="Label" Access="Public" Modulate="#FFFF00"/>
<RichTextLabel Name="Label" Access="Public" SetWidth="325" HorizontalAlignment="Left"/>
</controls:ObjectiveBriefingControl>