mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
feat: add window toggle
This commit is contained in:
parent
44551d43ae
commit
8495a42dd6
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>
|
||||
/// In this method, implement your drawing code.
|
||||
/// You do NOT need to ImGui.Begin your window.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue