diff options
| author | Jeff Carr <[email protected]> | 2021-10-31 21:07:36 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-31 21:07:36 -0500 |
| commit | c95392d4609f06eb0b86fc6a25b93613ee3770fb (patch) | |
| tree | 73f1db3e4f756ee8a1bb16ad8f7601f566885dd1 /button.go | |
| parent | 7fecc2b2a8c87386c0a51c6e4e3942e2def8f514 (diff) | |
BOX: kill GuiBox
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'button.go')
| -rw-r--r-- | button.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 } |
