diff options
| author | Jeff Carr <[email protected]> | 2024-01-01 15:43:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-01 15:43:50 -0600 |
| commit | 4e7bbd89900a733593f0848778103c1cf1a7145d (patch) | |
| tree | 22cd22124dd3ecba7c2a866b882d39aaf790d670 /debugWindow.go | |
| parent | 53ce3a8252090d5fb75d7fc1e3cd75a72c1415c6 (diff) | |
reorg to final resting place at go.wit.com/gui/guiv0.9.5
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'debugWindow.go')
| -rw-r--r-- | debugWindow.go | 9 |
1 files changed, 7 insertions, 2 deletions
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) } }) |
