Merge pull request #768 from LadyDefile/master

This commit is contained in:
goaaats 2022-02-27 13:43:09 +01:00 committed by GitHub
commit 878116bf14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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>