diff options
| author | Jeff Carr <[email protected]> | 2021-10-06 11:50:35 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-06 11:50:35 -0500 |
| commit | 84d67feb2c8d8cea48bc6d4a362a70dab65a67c5 (patch) | |
| tree | 247e21292b89fec5bd6d1a3b1ac8efed57a90955 /gui.go | |
| parent | 883159b940e711fbd3560edff8fcc3a2c2f68612 (diff) | |
FORMAT: I think somehow I formatted this
Diffstat (limited to 'gui.go')
| -rw-r--r-- | gui.go | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -1,11 +1,14 @@ package gui -import "log" -// import "time" -import "regexp" +import ( + "github.com/andlabs/ui" // import "time" + "log" + "regexp" -import "github.com/andlabs/ui" -import _ "github.com/andlabs/ui/winmanifest" // the _ means we only need this for the init() + _ "github.com/andlabs/ui/winmanifest" +) + +// the _ means we only need this for the init() const Xaxis = 0 // box that is horizontal const Yaxis = 1 // box that is vertical @@ -13,13 +16,13 @@ const Yaxis = 1 // box that is vertical func init() { log.Println("gui.init() has been run") - Data.buttonMap = make(map[*ui.Button]*GuiButton) - Data.WindowMap = make(map[string]*GuiWindow) + Data.buttonMap = make(map[*ui.Button]*GuiButton) + Data.WindowMap = make(map[string]*GuiWindow) } func GuiInit() { ui.OnShouldQuit(func() bool { - ui.Quit() + ui.Quit() return true }) } |
