Merge pull request #349 from kalilistic/window-toggle

feat: add window toggle
This commit is contained in:
goaaats 2021-05-02 18:16:01 +02:00 committed by GitHub
commit 31db71aef8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.