diff --git a/Dalamud/Interface/Windowing/WindowSystem.cs b/Dalamud/Interface/Windowing/WindowSystem.cs index 16dfcdf5c..0cb1a1514 100644 --- a/Dalamud/Interface/Windowing/WindowSystem.cs +++ b/Dalamud/Interface/Windowing/WindowSystem.cs @@ -84,6 +84,13 @@ namespace Dalamud.Interface.Windowing /// public void RemoveAllWindows() => this.windows.Clear(); + /// + /// Get a window by name. + /// + /// The name of the + /// The object with matching name or null. + public Window? GetWindow(string windowName) => this.windows.FirstOrDefault(w => w.WindowName == windowName); + /// /// Draw all registered windows using ImGui. ///