using Robust.Client.UserInterface; namespace Content.Client.Pinpointer.UI; public sealed class StationMapBoundUserInterface : BoundUserInterface { [ViewVariables] private StationMapWindow? _window; public StationMapBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey) { } protected override void Open() { base.Open(); EntityUid? gridUid = null; if (EntMan.TryGetComponent(Owner, out var xform)) { gridUid = xform.GridUid; } _window = this.CreateWindow(); _window.Title = EntMan.GetComponent(Owner).EntityName; _window.Set(gridUid, Owner); } }