From 4e7bbd89900a733593f0848778103c1cf1a7145d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 1 Jan 2024 15:43:50 -0600 Subject: reorg to final resting place at go.wit.com/gui/gui Signed-off-by: Jeff Carr --- debugWindow.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'debugWindow.go') diff --git a/debugWindow.go b/debugWindow.go index f17b130..bffd55c 100644 --- a/debugWindow.go +++ b/debugWindow.go @@ -16,10 +16,15 @@ var myButton *Node /* Creates a window helpful for debugging this package */ +func (n *Node) DebugWindow() { + newlog.Warn("Don't use DebugWindow() directly anymore") + DebugWindow() // todo, remove the non-binary tree access +} + func DebugWindow() { bugWin = me.rootNode.NewWindow("go.wit.com/gui debug window").DebugTab("Debug Tab") bugWin.Custom = bugWin.StandardClose - if newlog.ArgDebug() { + if ArgDebug() { newlog.SetTmp() bugWin.DebugFlags() } @@ -102,7 +107,7 @@ func (n *Node) DebugTab(title string) *Node { g2.NewButton("List Plugins", func () { for _, aplug := range allPlugins { - log("Loaded plugin:", aplug.name, aplug.filename) + log(true, "Loaded plugin:", aplug.name, aplug.filename) } }) -- cgit v1.2.3