summaryrefslogtreecommitdiff
path: root/area.go
diff options
context:
space:
mode:
Diffstat (limited to 'area.go')
-rw-r--r--area.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/area.go b/area.go
index 2cf3d18..4fb05ec 100644
--- a/area.go
+++ b/area.go
@@ -12,22 +12,24 @@ func makeGenericArea(n *Node, newText *ui.AttributedString, custom func(*GuiButt
// There should be another way to do this (?)
var newB *GuiButton
newB = CreateFontButton(n, "AREA")
- // newB.Box = gb
newB.Custom = custom
+/*
gw := n.window
// initialize the GuiArea{}
- gw.Area = new(GuiArea)
gw.Area.Button = newB
+*/
+ area := new(GuiArea)
+
// gw.Area.Box = gb
- gw.Area.UiAttrstr = newText
- gw.Area.UiArea = ui.NewArea(gw.Area)
+ n.uiAttrstr = newText
+ n.uiArea = ui.NewArea(area)
if (Config.Debug) {
- spew.Dump(gw.Area.UiArea)
+ spew.Dump(n.uiArea)
log.Println("DEBUGGING", Config.Debug)
} else {
- log.Println("NOT DEBUGGING AREA mhAH.Button =", gw.Area.Button)
+ log.Println("NOT DEBUGGING AREA mhAH.Button =", n.uiButton)
}
}