diff options
| author | Jeff Carr <[email protected]> | 2021-10-09 11:23:27 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-09 11:23:27 -0500 |
| commit | c73da74d2c13d4795d21458e9ece61a370a61368 (patch) | |
| tree | be6ff460636b1e03474f82193a7a1bfaa0d74af6 /new-structs.go | |
| parent | e002f833209109763e9df90d91b9ef0f498b22b5 (diff) | |
NODE: walking around in the rabbit hole
Diffstat (limited to 'new-structs.go')
| -rw-r--r-- | new-structs.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/new-structs.go b/new-structs.go index ffc90b9..d6741c4 100644 --- a/new-structs.go +++ b/new-structs.go @@ -90,6 +90,10 @@ func (n *Node) Dump() { } +func (n *Node) SetBox(box *GuiBox) { + n.box = box +} + func (n *Node) SetName(name string) { // n.uiType.SetName(name) if (n.uiWindow != nil) { @@ -208,6 +212,19 @@ func findByName(node *Node, name string) *Node { return nil } +func (parent *Node) AddTabNode(title string, n *Node) *Node { + // Ybox := gui.NewBox(box, gui.Yaxis, "Working Stuff") + // var baseControl ui.Control + // baseControl = Ybox.UiBox + // return baseControl + + parent.Dump() + + newNode := parent.makeNode(title, 444, 400 + Config.counter) + newNode.uiTab = parent.uiTab + return newNode +} + func (parent *Node) AddTab(title string, uiC ui.Control) *Node { if parent.uiWindow == nil { parent.Dump() |
