Ion law visuals (#22908)

This commit is contained in:
Nemanja
2023-12-24 01:58:02 -05:00
committed by GitHub
parent ba4b03f9be
commit 681f9a2c85
7 changed files with 58 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
HorizontalExpand="True"
VerticalExpand="True"
Margin="5 5 5 5">
<Label Name="LawNumberLabel" StyleClasses="StatusFieldTitle"/>
<RichTextLabel Name="LawNumberLabel" StyleClasses="LabelKeyText"/>
<customControls:HSeparator Margin="0 5 0 5"/>
<RichTextLabel Name="LawLabel"/>
<BoxContainer Name="LawAnnouncementButtons" Orientation="Horizontal" HorizontalExpand="True" Margin="0 5 0 0">

View File

@@ -1,4 +1,5 @@
using Content.Client.Chat.Managers;
using Content.Client.Message;
using Content.Shared.Chat;
using Content.Shared.Radio;
using Content.Shared.Silicons.Laws;
@@ -29,7 +30,7 @@ public sealed partial class LawDisplay : Control
var lawIdentifier = Loc.GetString("laws-ui-law-header", ("id", identifier));
var lawDescription = Loc.GetString(law.LawString);
LawNumberLabel.Text = lawIdentifier;
LawNumberLabel.SetMarkup(lawIdentifier);
LawLabel.SetMessage(lawDescription);
// If you can't talk, you can't state your laws...