summaryrefslogtreecommitdiff
path: root/button.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2021-10-31 21:07:36 -0500
committerJeff Carr <[email protected]>2021-10-31 21:07:36 -0500
commitc95392d4609f06eb0b86fc6a25b93613ee3770fb (patch)
tree73f1db3e4f756ee8a1bb16ad8f7601f566885dd1 /button.go
parent7fecc2b2a8c87386c0a51c6e4e3942e2def8f514 (diff)
BOX: kill GuiBox
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'button.go')
-rw-r--r--button.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/button.go b/button.go
index 8135962..5017f7a 100644
--- a/button.go
+++ b/button.go
@@ -50,7 +50,7 @@ func CreateFontButton(n *Node, action string) *GuiButton {
var newGB GuiButton
newGB.Name = "FONT"
newGB.FB = ui.NewFontButton()
- newGB.Box = n.box
+ // newGB.Box = n.box
Data.AllButtons = append(Data.AllButtons, &newGB)
newGB.FB.OnChanged(func (*ui.FontButton) {
@@ -67,7 +67,7 @@ func CreateColorButton(n *Node, custom func(*GuiButton), name string, values int
var newCB GuiButton
newCB.Name = name
newCB.CB = ui.NewColorButton()
- newCB.Box = n.box
+ // newCB.Box = n.box
newCB.Custom = custom
newCB.Values = values
@@ -83,6 +83,6 @@ func CreateColorButton(n *Node, custom func(*GuiButton), name string, values int
Data.MouseClick(&newCB)
}
})
- n.box.Append(newCB.CB, false)
+ n.uiBox.Append(newCB.CB, false)
return &newCB
}