* Added a method for retrieving a Window object by name.

This commit is contained in:
LadyDefile 2022-02-26 13:29:29 -06:00
parent 2ab9cbeda9
commit 9f3be8f107

View file

@ -84,6 +84,13 @@ namespace Dalamud.Interface.Windowing
/// </summary>
public void RemoveAllWindows() => this.windows.Clear();
/// <summary>
/// Get a window by name.
/// </summary>
/// <param name="windowName">The name of the <see cref="Window"/></param>
/// <returns>The <see cref="Window"/> object with matching name or null.</returns>
public Window? GetWindow(string windowName) => this.windows.FirstOrDefault(w => w.WindowName == windowName);
/// <summary>
/// Draw all registered windows using ImGui.
/// </summary>