diff options
| author | Jeff Carr <[email protected]> | 2024-01-07 10:38:17 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-07 10:38:17 -0600 |
| commit | ef6eb7a96aa4aee7c16ba5e7320bde4ffd79acc0 (patch) | |
| tree | bba27c349418d5d799d86fdbadcf275327e08c26 /smartwindow/postReady.go | |
| parent | 259b4bdb408fd234cf1c76f94463a85d87fdadb6 (diff) | |
error window v0.1
error box starts doing something
start a window for errors to fix
more status cleanups & housecleaning
Signed-off-by: Jeff Carr <[email protected]>
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'smartwindow/postReady.go')
| -rw-r--r-- | smartwindow/postReady.go | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/smartwindow/postReady.go b/smartwindow/postReady.go index bb3eab8..99349ff 100644 --- a/smartwindow/postReady.go +++ b/smartwindow/postReady.go @@ -55,5 +55,24 @@ func (sw *SmartWindow) Toggle() { func (sw *SmartWindow) Box() *gui.Node { if ! sw.Ready() {return nil} - return sw.window.Box() + return sw.box +} + +func (sw *SmartWindow) Draw() { + if ! sw.Ready() {return} + + log.Log(WARN, "Draw() window ready") + sw.window.Draw() + + if sw.vertical { + sw.box = sw.window.NewBox("bw vbox", false) + log.Log(WARN, "BasicWindow.Custom() made vbox") + } else { + sw.box = sw.window.NewBox("bw hbox", true) + log.Log(WARN, "BasicWindow.Custom() made hbox") + } + if (sw.populate != nil) { + log.Log(WARN, "Make() trying to run Custom sw.populate() here") + sw.populate(sw) + } } |
