summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-05 01:41:44 -0600
committerJeff Carr <[email protected]>2024-11-05 01:41:44 -0600
commit067b28b7e71af12843d1b1a1968b63a37bc4ad86 (patch)
treea58e2b8dd642ca0290db6269c1ab54cda8fc7d8e /common.go
parent87b53978f0e3eddf1f2abaed6a7cb35776f49205 (diff)
updates for v0.22 gui changesv0.22.2
Diffstat (limited to 'common.go')
-rw-r--r--common.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/common.go b/common.go
index 8d7f8c6..6241b12 100644
--- a/common.go
+++ b/common.go
@@ -201,6 +201,12 @@ myButton = myGroup.NewButton("hit ball", nil).SetName("HIT")
myButton.GetName() should return "HIT"
n = Find("HIT") should return myButton
*/
+// switch to this
+// todo: there are better ways than any of this once protobuf
+func (n *Node) SetRefName(s string) *Node {
+ return n.SetProgName(s)
+}
+
func (n *Node) SetProgName(s string) *Node {
if !n.Ready() {
return n
@@ -335,7 +341,6 @@ func (n *Node) Ready() bool {
panic("ready got nil")
// TODO: figure out if you can identify the code trace
// to help find the root cause
- return false
}
return true
}