diff options
| author | Jeff Carr <[email protected]> | 2019-06-01 13:41:45 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-06-01 13:41:45 -0700 |
| commit | 7d72ca3561fefd4c89f553448810eee545a47880 (patch) | |
| tree | d979433cc3b9bf201c4090874ea142541f34af66 /area.go | |
| parent | c5f9c6d96f1ce960fa08ab2c77b348a5bcdf03ea (diff) | |
start handling 'Guiwindow' correctly
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'area.go')
| -rw-r--r-- | area.go | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -17,18 +17,19 @@ func makeSplashArea(gb *GuiBox, newText *ui.AttributedString) { newB.Box = gb newB.GW = gb.Window + gw := gb.Window // initialize the GuiArea{} - gb.Area = new(GuiArea) - gb.Area.Button = newB - gb.Area.Box = gb - gb.Area.UiAttrstr = newText - gb.Area.UiArea = ui.NewArea(gb.Area) + gw.Area = new(GuiArea) + gw.Area.Button = newB + gw.Area.Box = gb + gw.Area.UiAttrstr = newText + gw.Area.UiArea = ui.NewArea(gw.Area) if (Data.Debug) { - spew.Dump(gb.Area.UiArea) + spew.Dump(gw.Area.UiArea) log.Println("DEBUGGING", Data.Debug) } else { - log.Println("NOT DEBUGGING AREA mhAH.Button =", gb.Area.Button) + log.Println("NOT DEBUGGING AREA mhAH.Button =", gw.Area.Button) } } @@ -128,7 +129,7 @@ func ShowTextBox(gw *GuiWindow, newText *ui.AttributedString) *GuiBox { gw.BoxMap["Splash"] = gb makeSplashArea(gb, newText) - newbox.Append(gb.Area.UiArea, true) + newbox.Append(gw.Area.UiArea, true) return gb } |
