@@ -2,15 +2,12 @@ using Content.Client.UserInterface.Controls;
|
||||
using Content.Shared.Silicons.Laws.Components;
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Client.Silicons.Laws.Ui;
|
||||
|
||||
[GenerateTypedNameReferences]
|
||||
public sealed partial class SiliconLawMenu : FancyWindow
|
||||
{
|
||||
[Dependency] private readonly IPrototypeManager _prototype = default!;
|
||||
|
||||
public SiliconLawMenu()
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
@@ -20,6 +17,7 @@ public sealed partial class SiliconLawMenu : FancyWindow
|
||||
public void Update(SiliconLawBuiState state)
|
||||
{
|
||||
state.Laws.Sort();
|
||||
LawDisplayContainer.Children.Clear();
|
||||
foreach (var law in state.Laws)
|
||||
{
|
||||
var control = new LawDisplay(law);
|
||||
|
||||
Reference in New Issue
Block a user