mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
Changes:
# Dalamud.Interface.Windowing.WindowSystem * Turned GetWindows() function into Windows property.
This commit is contained in:
parent
ee2aff9f0a
commit
1c8dc0a2b5
1 changed files with 1 additions and 6 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue