From 8495a42dd65f248b3e530520b1f031efeb2143aa Mon Sep 17 00:00:00 2001
From: kalilistic <35899782+kalilistic@users.noreply.github.com>
Date: Sun, 2 May 2021 11:23:05 -0400
Subject: [PATCH] feat: add window toggle
---
Dalamud/Interface/Windowing/Window.cs | 8 ++++++++
1 file changed, 8 insertions(+)
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.