summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
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
}