From 59d15f3fcf9799e00566aad7678f29add4e19dd4 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 31 Oct 2021 21:46:30 -0500 Subject: REFACTOR: remove GuiWindow & GuiBox Signed-off-by: Jeff Carr --- area.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'area.go') 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) } } -- cgit v1.2.3