Delta-v/Content.Client/Silicons/Laws/Ui/LawDisplay.xaml.cs

22 lines
604 B
C#

using Content.Shared.Silicons.Laws;
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface;
using Robust.Client.UserInterface.XAML;
namespace Content.Client.Silicons.Laws.Ui;
[GenerateTypedNameReferences]
public sealed partial class LawDisplay : Control
{
public LawDisplay(SiliconLaw prototype)
{
RobustXamlLoader.Load(this);
var identifier = prototype.LawIdentifierOverride ?? $"{prototype.Order}";
LawNumberLabel.Text = Loc.GetString("laws-ui-law-header", ("id", identifier));
LawLabel.SetMessage(Loc.GetString(prototype.LawString));
}
}