Wrap objective briefing text (#24244)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user