From 9dc8d790623f8b52e75f959244911c78ecb19265 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 5 Oct 2021 10:37:53 -0500 Subject: [PATCH] DEBUG: add DumpMap() Signed-off-by: Jeff Carr --- button.go | 4 ++-- debug.go | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/button.go b/button.go index 24dcd49..825b79b 100644 --- a/button.go +++ b/button.go @@ -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 } diff --git a/debug.go b/debug.go index 4253306..75f5424 100644 --- a/debug.go +++ b/debug.go @@ -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)