From c73da74d2c13d4795d21458e9ece61a370a61368 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 9 Oct 2021 11:23:27 -0500 Subject: NODE: walking around in the rabbit hole --- structs.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index f15a0e0..b7520d1 100644 --- a/structs.go +++ b/structs.go @@ -186,7 +186,7 @@ func (s GuiBox) Append(child ui.Control, x bool) { s.UiBox.Append(child, x) } - +/* func (s *GuiBox) AddTab(title string, custom ui.Control) *ui.Tab { if s.Window == nil { return nil @@ -199,6 +199,7 @@ func (s *GuiBox) AddTab(title string, custom ui.Control) *ui.Tab { tab.Append(title, custom) return tab } +*/ /* func (s GuiBox) AddBoxTab(title string) *GuiBox { @@ -218,9 +219,10 @@ func (n *Node) AddDemoTab(title string) { tabSetMargined(newNode.uiTab) } -func (s GuiBox) AddDebugTab(title string) { - uiTab := s.AddTab(title, makeWindowDebug()) - tabSetMargined(uiTab) +func (n *Node) AddDebugTab(title string) { + newNode := n.AddTab(title, makeWindowDebug()) + newNode.Dump() + tabSetMargined(newNode.uiTab) } func tabSetMargined(tab *ui.Tab) { -- cgit v1.2.3