diff options
| author | Jeff Carr <[email protected]> | 2021-10-09 10:46:57 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-09 10:46:57 -0500 |
| commit | e002f833209109763e9df90d91b9ef0f498b22b5 (patch) | |
| tree | 6dca61decdf3d339c712381f940051043ffcb3b3 /structs.go | |
| parent | e45a106d95e3043828735cf76aa487af837a2137 (diff) | |
NODE: climbing up the rabbit hole
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -200,6 +200,7 @@ func (s *GuiBox) AddTab(title string, custom ui.Control) *ui.Tab { return tab } +/* func (s GuiBox) AddBoxTab(title string) *GuiBox { uiTab := s.AddTab(title, initBlankWindow()) tabSetMargined(uiTab) @@ -209,10 +210,12 @@ func (s GuiBox) AddBoxTab(title string) *GuiBox { box.Window.UiTab = uiTab return box } +*/ -func (s GuiBox) AddDemoTab(title string) { - uiTab := s.AddTab(title, makeWindowTemplate()) - tabSetMargined(uiTab) +func (n *Node) AddDemoTab(title string) { + newNode := n.AddTab(title, makeWindowTemplate()) + newNode.Dump() + tabSetMargined(newNode.uiTab) } func (s GuiBox) AddDebugTab(title string) { |
