Borg laws announcement (second attempt) (#19474)

This commit is contained in:
chromiumboy
2023-08-24 21:56:01 -05:00
committed by GitHub
parent c73a90e16c
commit 26caf16152
8 changed files with 98 additions and 19 deletions

View File

@@ -9,10 +9,11 @@ public sealed class SiliconLawBoundUserInterface : BoundUserInterface
{
[ViewVariables]
private SiliconLawMenu? _menu;
private EntityUid _owner;
public SiliconLawBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
{
_owner = owner;
}
protected override void Open()
@@ -40,6 +41,6 @@ public sealed class SiliconLawBoundUserInterface : BoundUserInterface
if (state is not SiliconLawBuiState msg)
return;
_menu?.Update(msg);
_menu?.Update(_owner, msg);
}
}