From 7a9bcbd89c1237aad4740ca0b981248ffc2bccc0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 31 Oct 2021 15:46:31 -0500 Subject: TEXT: fix OnChanged() handling --- new-structs.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'new-structs.go') diff --git a/new-structs.go b/new-structs.go index 4f9989e..b75fe0b 100644 --- a/new-structs.go +++ b/new-structs.go @@ -44,6 +44,7 @@ type Node struct { Name string Width int Height int + OnChanged func () parent *Node children []*Node @@ -73,6 +74,7 @@ func (n *Node) Dump() { log.Println("gui.Node.Dump() Name = ", n.Name) log.Println("gui.Node.Dump() Width = ", n.Width) log.Println("gui.Node.Dump() Height = ", n.Height) + log.Println("gui.Node.Dump() OnChanged = ", n.OnChanged) if (n.parent == nil) { log.Println("gui.Node.Dump() parent = nil") @@ -89,6 +91,7 @@ func (n *Node) Dump() { log.Println("gui.Node.Dump() uiBox = ", n.uiBox) log.Println("gui.Node.Dump() uiControl = ", n.uiControl) log.Println("gui.Node.Dump() uiButton = ", n.uiButton) + log.Println("gui.Node.Dump() uiText = ", n.uiText) if (n.id == "") { panic("gui.Node.Dump() id == nil") } -- cgit v1.2.3