DEBUG: add DumpMap()
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
ccb91460ca
commit
9dc8d79062
|
@ -68,7 +68,7 @@ func CreateButton(box *GuiBox, custom func(*GuiButton), name string, values inte
|
||||||
|
|
||||||
Data.AllButtons = append(Data.AllButtons, newB)
|
Data.AllButtons = append(Data.AllButtons, newB)
|
||||||
|
|
||||||
box.UiBox.Append(newB.B, false)
|
box.Append(newB.B, false)
|
||||||
return newB
|
return newB
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,6 +110,6 @@ func CreateColorButton(box *GuiBox, custom func(*GuiButton), name string, values
|
||||||
Data.MouseClick(&newCB)
|
Data.MouseClick(&newCB)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
box.UiBox.Append(newCB.CB, false)
|
box.Append(newCB.CB, false)
|
||||||
return &newCB
|
return &newCB
|
||||||
}
|
}
|
||||||
|
|
6
debug.go
6
debug.go
|
@ -30,6 +30,12 @@ func WatchGUI() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func DumpMap() {
|
||||||
|
for name, _ := range Data.WindowMap {
|
||||||
|
log.Println("gui.DumpBoxes() MAP: ", name)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func DumpBoxes() {
|
func DumpBoxes() {
|
||||||
for name, window := range Data.WindowMap {
|
for name, window := range Data.WindowMap {
|
||||||
log.Println("gui.DumpBoxes() MAP: ", name)
|
log.Println("gui.DumpBoxes() MAP: ", name)
|
||||||
|
|
Loading…
Reference in New Issue