mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-06-09 10:06:49 +02:00
33 lines
849 B
C#
33 lines
849 B
C#
using Content.Shared.Surgery;
|
|
using JetBrains.Annotations;
|
|
using Robust.Client.UserInterface;
|
|
|
|
namespace Content.Client._Wega.Surgery.Ui
|
|
{
|
|
[UsedImplicitly]
|
|
public sealed partial class BodyScannerBoundUserInterface : BoundUserInterface
|
|
{
|
|
[ViewVariables]
|
|
private BodyScannerWindow? _window;
|
|
|
|
public BodyScannerBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
|
|
{
|
|
}
|
|
|
|
protected override void Open()
|
|
{
|
|
base.Open();
|
|
|
|
_window = this.CreateWindow<BodyScannerWindow>();
|
|
}
|
|
|
|
protected override void UpdateState(BoundUserInterfaceState state)
|
|
{
|
|
base.UpdateState(state);
|
|
|
|
if (state is BodyScannerBoundUserInterfaceState scannerState)
|
|
_window?.UpdateState(scannerState);
|
|
}
|
|
}
|
|
}
|