From c95392d4609f06eb0b86fc6a25b93613ee3770fb Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 31 Oct 2021 21:07:36 -0500 Subject: BOX: kill GuiBox Signed-off-by: Jeff Carr --- button.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'button.go') 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 } -- cgit v1.2.3