diff options
| author | Jeff Carr <[email protected]> | 2023-04-28 10:35:57 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-28 10:35:57 -0500 |
| commit | 923f7721cca66d84dea77ffd9640d793803142ee (patch) | |
| tree | 824c9a2b83f574c37279c8526a1566035e78c2bb /debugWindow.go | |
| parent | 03942de00e133daf59da8ed3b6c3e71ce8afe316 (diff) | |
s/Config/me/ to remove direct access to anything
since most everything needs to be passed to the toolkits
everything should be accessed via func()'s
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'debugWindow.go')
| -rw-r--r-- | debugWindow.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/debugWindow.go b/debugWindow.go index febe961..338461e 100644 --- a/debugWindow.go +++ b/debugWindow.go @@ -19,7 +19,7 @@ var myButton *Node Creates a window helpful for debugging this package */ func DebugWindow() { - bugWin = Config.rootNode.NewWindow("go.wit.com/gui debug window").DebugTab("Debug Tab") + bugWin = me.rootNode.NewWindow("go.wit.com/gui debug window").DebugTab("Debug Tab") bugWin.Custom = bugWin.StandardClose // bugWin.DebugTab("Debug Tab") } @@ -66,7 +66,7 @@ func (n *Node) DebugTab(title string) *Node { g1.NewButton("List toolkits", func () { dropdownWindow(g1) - Config.rootNode.ListToolkits() + me.rootNode.ListToolkits() }) g1.NewButton("List Windows", func () { dropdownWindow(g1) @@ -79,7 +79,7 @@ func (n *Node) DebugTab(title string) *Node { g2.NewButton("Node.ListChildren(true)", func () { if (activeWidget == nil) { - activeWidget = Config.rootNode + activeWidget = me.rootNode } activeWidget.ListChildren(true) }) @@ -95,7 +95,7 @@ func (n *Node) DebugTab(title string) *Node { }) g2.NewButton("load toolkit 'gocui'", func () { - Config.rootNode.LoadToolkit("gocui") + me.rootNode.LoadToolkit("gocui") }) return newN @@ -120,7 +120,7 @@ func dropdownWindow(p *Node) { } // var last = "" - for _, child := range Config.rootNode.children { + for _, child := range me.rootNode.children { log(logInfo, "\t\t", child.id, child.Name) dd.AddDropdownName(child.Name) // last = child.Name @@ -160,5 +160,5 @@ func dropdownWindowWidgets(p *Node) { } // list everything in the binary tree - addDropdowns(Config.rootNode) + addDropdowns(me.rootNode) } |
