From 55ec876954d861f406d084f602fceaacb35d7181 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 27 Jan 2024 09:04:00 -0600 Subject: [PATCH] nocui works Signed-off-by: Jeff Carr --- main.go | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/main.go b/main.go index eaf3244..b5f7998 100644 --- a/main.go +++ b/main.go @@ -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 }