refactor ImGUI code files

This commit is contained in:
2022-02-10 19:58:51 +08:00
parent bb33972616
commit 06cd549eb7
13 changed files with 172 additions and 50 deletions

View File

@@ -28,7 +28,7 @@ func Text(format string, a ...interface{}) {
// returns true.
func Begin(id string, open *bool, flags imgui.WindowFlags) bool {
// skip if the window is not open
if !(*open) {
if open != nil && !(*open) {
return false
}