summaryrefslogtreecommitdiff
path: root/debugWindow.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-03-29 22:44:08 -0500
committerJeff Carr <[email protected]>2023-03-29 22:44:08 -0500
commit947169df5a22c9f9b53f825764747f648c70ff1e (patch)
tree3c84fffc14352329bc41e6b58910ff278c99f08c /debugWindow.go
parent6013fde8332e8ecbffaf1a0977ba2e1da8ea8775 (diff)
ready for version v0.7.4
start deprecating toolkit.Widget switch to variable name 'ParentId' use 'ActionType' and 'WidgetType' preliminary redraw() final definition of variables 'Name' and 'Text' more cleaning of the code remove lots of dumb code bind 'd' key press to dump out debugging info early color handling in gocui! Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'debugWindow.go')
-rw-r--r--debugWindow.go10
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)
}