summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2022-10-11 11:25:46 -0500
committerJeff Carr <[email protected]>2022-10-11 11:25:46 -0500
commit8358ca44efa625be9cd69fab870dfcf9c2a05df5 (patch)
tree82a012480818d6825f01ce9bc5b62847347629c1 /gui.go
parent45644ef9bc333f5def62d1c7f474dc96274e63fa (diff)
Change Node to Box
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui.go b/gui.go
index ac75f1e..4174133 100644
--- a/gui.go
+++ b/gui.go
@@ -14,16 +14,18 @@ const Xaxis = 0 // box that is horizontal
const Yaxis = 1 // box that is vertical
func init() {
- log.Println("gui.init() REMOVE THIS init()")
+ log.Println("gui.init() has been run")
+ 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
- Config.Stretchy = true
}
func GuiInit() {