Browse Source

fix test33

Ethosa 4 years ago
parent
commit
ad01ad34fa
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tests/test33.nim

+ 3 - 3
tests/test33.nim

@@ -12,14 +12,14 @@ node.setText("Hello")
 node.setAnchor(0.5, 0.5, 0.5, 0.5)
 
 
-node@ready(self):
+node@onReady(self):
   echo "hello!"
 
-node@input(self, event):
+node@onInput(self, event):
   if event.isInputEventMouseButton() and event.pressed:
     echo "clicked"
 
-node@on_click(self, x, y):
+node@onClick(self, x, y):
   node.setText("clicked in " & $x & "," & $y & ".")