From e002f833209109763e9df90d91b9ef0f498b22b5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 9 Oct 2021 10:46:57 -0500 Subject: NODE: climbing up the rabbit hole --- structs.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'structs.go') 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) { -- cgit v1.2.3