# Dalamud.Interface.Windowing.WindowSystem
* Turned GetWindows() function into Windows property.
This commit is contained in:
LadyDefile 2022-03-07 16:16:18 -06:00
parent ee2aff9f0a
commit 1c8dc0a2b5

View file

@ -16,6 +16,7 @@ namespace Dalamud.Interface.Windowing
private static DateTimeOffset lastAnyFocus;
private readonly List<Window> windows = new();
public IReadOnlyList<Window> Windows => this.windows;
private string lastFocusedWindowName = string.Empty;
@ -91,12 +92,6 @@ namespace Dalamud.Interface.Windowing
/// <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>
/// Returns a read only list of all currently registered windows.
/// </summary>
/// <returns>Returns a <see cref="IReadOnlyList{T}"/> of the registered windows.</returns>
public IReadOnlyList GetWindows() => this.windows;
/// <summary>
/// Draw all registered windows using ImGui.
/// </summary>