2024-07-21 14:48:13 +10:00
|
|
|
using Robust.Client.UserInterface;
|
2024-01-06 07:31:20 +00:00
|
|
|
|
|
|
|
|
namespace Content.Client.Pinpointer.UI;
|
|
|
|
|
|
|
|
|
|
public sealed class UntrackedStationMapBoundUserInterface : BoundUserInterface
|
|
|
|
|
{
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
private StationMapWindow? _window;
|
|
|
|
|
|
|
|
|
|
public UntrackedStationMapBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Open()
|
|
|
|
|
{
|
|
|
|
|
base.Open();
|
|
|
|
|
EntityUid? gridUid = null;
|
|
|
|
|
|
2024-07-21 14:48:13 +10:00
|
|
|
// TODO: What this just looks like it's been copy-pasted wholesale from StationMapBoundUserInterface?
|
2024-01-06 07:31:20 +00:00
|
|
|
if (EntMan.TryGetComponent<TransformComponent>(Owner, out var xform))
|
|
|
|
|
{
|
|
|
|
|
gridUid = xform.GridUid;
|
|
|
|
|
}
|
|
|
|
|
|
2024-07-21 14:48:13 +10:00
|
|
|
_window = this.CreateWindow<StationMapWindow>();
|
|
|
|
|
_window.Set(gridUid, Owner);
|
2024-01-06 07:31:20 +00:00
|
|
|
}
|
|
|
|
|
}
|