瀏覽代碼

fix test33

Ethosa 4 年之前
父節點
當前提交
ad01ad34fa
共有 1 個文件被更改,包括 3 次插入3 次删除
  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 & ".")