Wrap objective briefing text (#24244)
This commit is contained in:
@@ -149,7 +149,10 @@ public sealed class CharacterUIController : UIController, IOnStateEntered<Gamepl
|
|||||||
if (briefing != null)
|
if (briefing != null)
|
||||||
{
|
{
|
||||||
var briefingControl = new ObjectiveBriefingControl();
|
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);
|
_window.Objectives.AddChild(briefingControl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
xmlns="https://spacestation14.io"
|
xmlns="https://spacestation14.io"
|
||||||
xmlns:controls="clr-namespace:Content.Client.UserInterface.Systems.Objectives.Controls"
|
xmlns:controls="clr-namespace:Content.Client.UserInterface.Systems.Objectives.Controls"
|
||||||
Orientation="Horizontal">
|
Orientation="Horizontal">
|
||||||
<Label Name="Label" Access="Public" Modulate="#FFFF00"/>
|
<RichTextLabel Name="Label" Access="Public" SetWidth="325" HorizontalAlignment="Left"/>
|
||||||
</controls:ObjectiveBriefingControl>
|
</controls:ObjectiveBriefingControl>
|
||||||
|
|||||||
Reference in New Issue
Block a user