summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2021-10-09 10:46:57 -0500
committerJeff Carr <[email protected]>2021-10-09 10:46:57 -0500
commite002f833209109763e9df90d91b9ef0f498b22b5 (patch)
tree6dca61decdf3d339c712381f940051043ffcb3b3 /structs.go
parente45a106d95e3043828735cf76aa487af837a2137 (diff)
NODE: climbing up the rabbit hole
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/structs.go b/structs.go
index d09efb8..f15a0e0 100644
--- a/structs.go
+++ b/structs.go
@@ -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) {