summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2021-10-09 11:23:27 -0500
committerJeff Carr <[email protected]>2021-10-09 11:23:27 -0500
commitc73da74d2c13d4795d21458e9ece61a370a61368 (patch)
treebe6ff460636b1e03474f82193a7a1bfaa0d74af6 /structs.go
parente002f833209109763e9df90d91b9ef0f498b22b5 (diff)
NODE: walking around in the rabbit hole
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go10
1 files changed, 6 insertions, 4 deletions
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) {