summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2022-10-11 11:59:42 -0500
committerJeff Carr <[email protected]>2022-10-11 11:59:42 -0500
commit3c899365154e48aefbc0b5ee48cd089f49339cb2 (patch)
tree13f3c0aa281d17c55306ed2e0323aa5188087e04 /gui.go
parent2294e22484be61a934ca8b523f4aeb40d20d6196 (diff)
parent770fa06a18652b30db0cd4ee64e8e89d06d7de2e (diff)
Merge branch 'master' into develv0.3.1
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go27
1 files changed, 19 insertions, 8 deletions
diff --git a/gui.go b/gui.go
index 3bdd32e..4174133 100644
--- a/gui.go
+++ b/gui.go
@@ -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,21 @@ 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)
+ Data.NodeMap = make(map[string]*Node)
+
+ Data.NodeSlice = make([]*Node, 0)
+
+ Config.counter = 0
+ Config.prefix = "wit"
+ Config.DebugNode = false
+ Config.DebugTabs = false
}
func GuiInit() {
ui.OnShouldQuit(func() bool {
- ui.Quit()
+ ui.Quit()
return true
})
}