feat: add window toggle

This commit is contained in:
kalilistic 2021-05-02 11:23:05 -04:00
parent 44551d43ae
commit 8495a42dd6

View file

@ -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.