mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 05:43:40 +01:00
Merge pull request #349 from kalilistic/window-toggle
feat: add window toggle
This commit is contained in:
commit
31db71aef8
1 changed files with 8 additions and 0 deletions
|
|
@ -106,6 +106,14 @@ namespace Dalamud.Interface.Windowing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toggle window is open state.
|
||||||
|
/// </summary>
|
||||||
|
public void Toggle()
|
||||||
|
{
|
||||||
|
this.IsOpen ^= true;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// In this method, implement your drawing code.
|
/// In this method, implement your drawing code.
|
||||||
/// You do NOT need to ImGui.Begin your window.
|
/// You do NOT need to ImGui.Begin your window.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue