nocui works

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-27 09:04:00 -06:00
parent 1e7f6e118e
commit 55ec876954
1 changed files with 11 additions and 16 deletions

27
main.go
View File

@ -58,10 +58,6 @@ func DebugWindow2(newB *gui.Node, title string) *gui.Node {
//////////////////////// window debugging things //////////////////////////////////
gr = newB.NewGroup("list things")
gr.NewButton("List toolkits", func() {
dropdownWindow(gr)
bugWin.ListToolkits()
})
gr.NewButton("List Windows", func() {
dropdownWindow(gr)
})
@ -69,8 +65,6 @@ func DebugWindow2(newB *gui.Node, title string) *gui.Node {
dropdownWindowWidgets(gr)
})
gr = newB.NewGroup("more things")
gr.NewButton("Node.ListChildren(true)", func() {
if activeWidget == nil {
activeWidget = bugWin
@ -78,18 +72,15 @@ func DebugWindow2(newB *gui.Node, title string) *gui.Node {
activeWidget.ListChildren(true)
})
gr.NewButton("test conc", func() {
log.Log(WARN, "TODO: fix me")
// makeConc()
gr = newB.NewGroup("plugins")
gr.NewButton("List Toolkits", func() {
me.treeRoot.ListToolkits()
})
gr.NewButton("List Plugins", func() {
log.Log(WARN, "TODO: fix me")
/*
for _, aplug := range allPlugins {
log.Log(true, "Loaded plugin:", aplug.name, aplug.filename)
}
*/
gr.NewButton("load toolkit 'nocui'", func() {
bugWin.LoadToolkit("nocui")
})
gr.NewButton("load toolkit 'gocui'", func() {
@ -122,6 +113,10 @@ func DebugWindow2(newB *gui.Node, title string) *gui.Node {
me.gochan.Toggle()
}
})
gr.NewButton("test conc", func() {
log.Log(WARN, "TODO: fix me")
// makeConc()
})
return newB
}