DEBUG: add DumpMap()

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2021-10-05 10:37:53 -05:00
parent ccb91460ca
commit 9dc8d79062
2 changed files with 8 additions and 2 deletions

View File

@ -68,7 +68,7 @@ func CreateButton(box *GuiBox, custom func(*GuiButton), name string, values inte
Data.AllButtons = append(Data.AllButtons, newB)
box.UiBox.Append(newB.B, false)
box.Append(newB.B, false)
return newB
}
@ -110,6 +110,6 @@ func CreateColorButton(box *GuiBox, custom func(*GuiButton), name string, values
Data.MouseClick(&newCB)
}
})
box.UiBox.Append(newCB.CB, false)
box.Append(newCB.CB, false)
return &newCB
}

View File

@ -30,6 +30,12 @@ func WatchGUI() {
}
}
func DumpMap() {
for name, _ := range Data.WindowMap {
log.Println("gui.DumpBoxes() MAP: ", name)
}
}
func DumpBoxes() {
for name, window := range Data.WindowMap {
log.Println("gui.DumpBoxes() MAP: ", name)