work towards gui Draw() abstraction
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
ff32316084
commit
198f7eac88
6
main.go
6
main.go
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue