diff options
Diffstat (limited to 'debugWindow.go')
| -rw-r--r-- | debugWindow.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/debugWindow.go b/debugWindow.go index a445d28..ddbddc2 100644 --- a/debugWindow.go +++ b/debugWindow.go @@ -78,7 +78,7 @@ func (n *Node) DebugTab(title string) *Node { g2.NewButton("Node.ListChildren(true)", func () { if (activeWidget == nil) { - activeWidget = Config.master + activeWidget = Config.rootNode } activeWidget.ListChildren(true) }) @@ -101,6 +101,10 @@ func (n *Node) DebugTab(title string) *Node { StartS("democui") }) + g2.NewButton("Redraw(democui)", func () { + Redraw("democui") + }) + return newN } @@ -123,7 +127,7 @@ func dropdownWindow(p *Node) { } // var last = "" - for _, child := range Config.master.children { + for _, child := range Config.rootNode.children { log(debugGui, "\t\t", child.id, child.Width, child.Height, child.Name) dd.AddDropdownName(child.Name) // last = child.Name @@ -163,5 +167,5 @@ func dropdownWindowWidgets(p *Node) { } // list everything in the binary tree - addDropdowns(Config.master) + addDropdowns(Config.rootNode) } |
