work towards gui Draw() abstraction

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-05 14:50:14 -06:00
parent ff32316084
commit 198f7eac88
1 changed files with 4 additions and 2 deletions

View File

@ -15,6 +15,8 @@ import (
func DebugWindow(p *gui.Node) {
if (me != nil) {
log.Warn("Draw then Toggle() debuging window here")
me.bugWin.Draw()
me.bugWin.Toggle()
return
}
@ -22,11 +24,11 @@ func DebugWindow(p *gui.Node) {
me.myGui = p
me.bugWin = gadgets.NewBasicWindow(p,"go.wit.com/gui debug window")
DebugWindow2(me.bugWin.Box(), "Debug Tab")
// initialize the log settings window (does not display it)
// initialize the log settings window (does not display it)
me.myLS = logsettings.New(me.myGui)
if ArgDebug() {
log.SetTmp()
}