diff --git a/Dalamud/Interface/Windowing/Window.cs b/Dalamud/Interface/Windowing/Window.cs index d74778a9b..1271d09fb 100644 --- a/Dalamud/Interface/Windowing/Window.cs +++ b/Dalamud/Interface/Windowing/Window.cs @@ -106,6 +106,14 @@ namespace Dalamud.Interface.Windowing } } + /// + /// Toggle window is open state. + /// + public void Toggle() + { + this.IsOpen ^= true; + } + /// /// In this method, implement your drawing code. /// You do NOT need to ImGui.Begin your window.