2022-06-16 15:28:16 +10:00
|
|
|
using Content.Client.Shuttles.UI;
|
|
|
|
|
using Content.Shared.Shuttles.BUIStates;
|
|
|
|
|
using JetBrains.Annotations;
|
|
|
|
|
using Robust.Client.GameObjects;
|
2024-07-21 14:48:13 +10:00
|
|
|
using Robust.Client.UserInterface;
|
2024-03-03 18:39:19 +11:00
|
|
|
using RadarConsoleWindow = Content.Client.Shuttles.UI.RadarConsoleWindow;
|
2022-06-16 15:28:16 +10:00
|
|
|
|
|
|
|
|
namespace Content.Client.Shuttles.BUI;
|
|
|
|
|
|
|
|
|
|
[UsedImplicitly]
|
|
|
|
|
public sealed class RadarConsoleBoundUserInterface : BoundUserInterface
|
|
|
|
|
{
|
2023-07-08 09:02:17 -07:00
|
|
|
[ViewVariables]
|
2022-06-16 15:28:16 +10:00
|
|
|
private RadarConsoleWindow? _window;
|
|
|
|
|
|
2023-07-08 09:02:17 -07:00
|
|
|
public RadarConsoleBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
|
|
|
|
|
{
|
|
|
|
|
}
|
2022-06-16 15:28:16 +10:00
|
|
|
|
|
|
|
|
protected override void Open()
|
|
|
|
|
{
|
|
|
|
|
base.Open();
|
2023-07-08 09:02:17 -07:00
|
|
|
|
2024-07-21 14:48:13 +10:00
|
|
|
_window = this.CreateWindow<RadarConsoleWindow>();
|
2022-06-26 15:20:45 +10:00
|
|
|
}
|
|
|
|
|
|
2022-06-16 15:28:16 +10:00
|
|
|
protected override void UpdateState(BoundUserInterfaceState state)
|
|
|
|
|
{
|
|
|
|
|
base.UpdateState(state);
|
2024-03-03 18:39:19 +11:00
|
|
|
if (state is not NavBoundUserInterfaceState cState)
|
|
|
|
|
return;
|
2022-06-16 15:28:16 +10:00
|
|
|
|
2024-03-03 18:39:19 +11:00
|
|
|
_window?.UpdateState(cState.State);
|
2022-06-16 15:28:16 +10:00
|
|
|
}
|
|
|
|
|
}
|