Wrap objective briefing text (#24244)
This commit is contained in:
parent
d47052820c
commit
0d53dad58a
2 changed files with 5 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue