using System; using Robust.Client.UserInterface.Controls; using Robust.Client.UserInterface.CustomControls; namespace Robust.Client.UserInterface; public partial interface IUserInterfaceManager { public T CreatePopup() where T : Popup, new(); public bool RemoveFirstPopup() where T : Popup, new(); public bool TryGetFirstPopup(out T? popup) where T : Popup, new(); public bool TryGetFirstPopup(Type type, out Popup? popup); public bool RemoveFirstWindow() where T : BaseWindow, new(); public T CreateWindow() where T : BaseWindow, new(); public void ClearWindows(); public T GetFirstWindow() where T : BaseWindow, new(); public bool TryGetFirstWindow(out T? window) where T : BaseWindow, new(); public bool TryGetFirstWindow(Type type, out BaseWindow? window); }