using Robust.Client.UserInterface.CustomControls; namespace Content.Client._Ohio.Buttons; public sealed class OhioUICommandButton : OhioCommandButton { public Type? WindowType { get; set; } private DefaultWindow? _window; protected override void Execute(ButtonEventArgs obj) { if (WindowType == null) return; _window = (DefaultWindow) IoCManager.Resolve().CreateInstance(WindowType); _window?.OpenCentered(); } }