summaryrefslogtreecommitdiff
path: root/box.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2021-10-31 03:50:22 -0500
committerJeff Carr <[email protected]>2021-10-31 03:50:22 -0500
commite5638b8079728e66b09071ec8af1d2b423b9eb76 (patch)
tree8c91e0984492b2abab1086870caddcecbbfb491a /box.go
parentedceb19a33643419d0e367d36a7753fb68ede470 (diff)
NODE: add a button in the hole that doesn't use the other hole
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'box.go')
-rw-r--r--box.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/box.go b/box.go
index 9d9833d..61ee2e7 100644
--- a/box.go
+++ b/box.go
@@ -102,9 +102,9 @@ func (n *Node) AddBox(axis int, name string) *Node {
return newNode
}
-func NewBox(box *GuiBox, axis int, name string) *GuiBox {
+func (b *GuiBox) NewBox(axis int, name string) *GuiBox {
log.Println("gui.NewBox() START")
- n := box.FindNode()
+ n := b.FindNode()
if (n == nil) {
log.Println("gui.NewBox() SERIOUS ERROR. CAN NOT FIND NODE")
os.Exit(0)
@@ -113,7 +113,7 @@ func NewBox(box *GuiBox, axis int, name string) *GuiBox {
}
var newbox *GuiBox
newbox = new(GuiBox)
- newbox.Window = box.Window
+ newbox.Window = b.Window
newbox.Name = name
var uiBox *ui.Box
@@ -124,7 +124,7 @@ func NewBox(box *GuiBox, axis int, name string) *GuiBox {
}
uiBox.SetPadded(true)
newbox.UiBox = uiBox
- add(box, newbox)
+ add(b, newbox)
// panic("gui.NewBox")
return newbox
}