diff options
| author | Jeff Carr <[email protected]> | 2021-10-31 21:46:30 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-31 21:46:30 -0500 |
| commit | 59d15f3fcf9799e00566aad7678f29add4e19dd4 (patch) | |
| tree | 455b313557c51132455d94cafafd72d1178af842 /area.go | |
| parent | c95392d4609f06eb0b86fc6a25b93613ee3770fb (diff) | |
REFACTOR: remove GuiWindow & GuiBox
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'area.go')
| -rw-r--r-- | area.go | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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) } } |
