Files
crystall-punk-14/Content.Client/Shuttles/BUI/RadarConsoleBoundUserInterface.cs

36 lines
917 B
C#
Raw Permalink Normal View History

using Content.Client.Shuttles.UI;
using Content.Shared.Shuttles.BUIStates;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Client.UserInterface;
using RadarConsoleWindow = Content.Client.Shuttles.UI.RadarConsoleWindow;
namespace Content.Client.Shuttles.BUI;
[UsedImplicitly]
public sealed class RadarConsoleBoundUserInterface : BoundUserInterface
{
2023-07-08 09:02:17 -07:00
[ViewVariables]
private RadarConsoleWindow? _window;
2023-07-08 09:02:17 -07:00
public RadarConsoleBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
{
}
protected override void Open()
{
base.Open();
2023-07-08 09:02:17 -07:00
_window = this.CreateWindow<RadarConsoleWindow>();
}
protected override void UpdateState(BoundUserInterfaceState state)
{
base.UpdateState(state);
if (state is not NavBoundUserInterfaceState cState)
return;
_window?.UpdateState(cState.State);
}
}