diff options
| author | Jeff Carr <[email protected]> | 2021-10-31 03:50:22 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-31 03:50:22 -0500 |
| commit | e5638b8079728e66b09071ec8af1d2b423b9eb76 (patch) | |
| tree | 8c91e0984492b2abab1086870caddcecbbfb491a /box.go | |
| parent | edceb19a33643419d0e367d36a7753fb68ede470 (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.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 } |
