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 /structs.go | |
| parent | e002f833209109763e9df90d91b9ef0f498b22b5 (diff) | |
NODE: walking around in the rabbit hole
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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) { |
