diff --git a/Content.Client/_CP14/DemiplaneTraveling/CP14ClientStationDemiplaneMapSystem.cs b/Content.Client/_CP14/DemiplaneTraveling/CP14ClientStationDemiplaneMapSystem.cs new file mode 100644 index 0000000000..c4cedc14c0 --- /dev/null +++ b/Content.Client/_CP14/DemiplaneTraveling/CP14ClientStationDemiplaneMapSystem.cs @@ -0,0 +1,7 @@ +using Content.Shared._CP14.DemiplaneTraveling; + +namespace Content.Client._CP14.DemiplaneTraveling; + +public sealed partial class CP14ClientStationDemiplaneMapSystem : CP14SharedStationDemiplaneMapSystem +{ +} diff --git a/Content.Client/_CP14/DemiplaneTraveling/CP14DemiplaneMapBoundUserInterface.cs b/Content.Client/_CP14/DemiplaneTraveling/CP14DemiplaneMapBoundUserInterface.cs new file mode 100644 index 0000000000..1ff5e85484 --- /dev/null +++ b/Content.Client/_CP14/DemiplaneTraveling/CP14DemiplaneMapBoundUserInterface.cs @@ -0,0 +1,34 @@ +using Content.Shared._CP14.DemiplaneTraveling; +using Robust.Client.UserInterface; + +namespace Content.Client._CP14.DemiplaneTraveling; + +public sealed class CP14DemiplaneMapBoundUserInterface : BoundUserInterface +{ + private CP14DemiplaneMapWindow? _window; + + public CP14DemiplaneMapBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey) + { + IoCManager.InjectDependencies(this); + } + + protected override void Open() + { + base.Open(); + + _window = this.CreateWindow(); + + _window.OnEject += pos => SendMessage(new CP14DemiplaneMapEjectMessage(pos)); + _window.OnRevoke += pos => SendMessage(new CP14DemiplaneMapRevokeMessage(pos)); + } + + protected override void UpdateState(BoundUserInterfaceState state) + { + base.UpdateState(state); + + if (_window == null || state is not CP14DemiplaneMapUiState mapState) + return; + + _window?.UpdateState(mapState); + } +} diff --git a/Content.Client/_CP14/DemiplaneTraveling/CP14DemiplaneMapWindow.xaml b/Content.Client/_CP14/DemiplaneTraveling/CP14DemiplaneMapWindow.xaml new file mode 100644 index 0000000000..59dac30aa9 --- /dev/null +++ b/Content.Client/_CP14/DemiplaneTraveling/CP14DemiplaneMapWindow.xaml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +