mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
* Added a method for retrieving a Window object by name.
This commit is contained in:
parent
2ab9cbeda9
commit
9f3be8f107
1 changed files with 7 additions and 0 deletions
|
|
@ -84,6 +84,13 @@ namespace Dalamud.Interface.Windowing
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void RemoveAllWindows() => this.windows.Clear();
|
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>
|
/// <summary>
|
||||||
/// Draw all registered windows using ImGui.
|
/// Draw all registered windows using ImGui.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue