Ethosa 4 年之前
父节点
当前提交
93e4060410
共有 3 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      .github/workflows/gh-pages.yml
  2. 2 2
      tests/test25.nim
  3. 1 1
      tests/test37.nim

+ 1 - 1
.github/workflows/gh-pages.yml

@@ -46,7 +46,7 @@ jobs:
         run: sudo apt install --fix-missing -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
 
       - name: Generate API documents
-        run: nimble doc --index:on --project --out:docs --hints:off src/nodesnim.nim
+        run: nim doc --index:on --project --out:docs --hints:off src/nodesnim.nim
 
       - name: Deploy documents
         uses: peaceiris/actions-gh-pages@v3

+ 2 - 2
tests/test25.nim

@@ -16,7 +16,7 @@ var
 main.addChild(button)
 env.setBackgroundColor(Color(0xf2f2f7ff'u32))
 
-button.text = "Press me!"
+button.setText("Press me!")
 button.resize(256, 64)
 button.setAnchor(0.5, 0.5, 0.5, 0.5)
 
@@ -26,7 +26,7 @@ button.setPressTexture(press_texture)
 
 button.on_touch =
   proc(self: TextureButtonRef, x, y: float) =  # This called when user clicks on the button
-    button.text = "Clicked in " & $x & ", " & $y & " position."
+    button.setText("Clicked in " & $x & ", " & $y & " position.")
 
 
 addScene(main)

+ 1 - 1
tests/test37.nim

@@ -16,7 +16,7 @@ build:
       translation: Vector3(-1, 0, 2)
       color: Color(122, 133, 144, 0.8)
     - Button button:
-      text: "Hello! ^^"
+      text: stext"Hello! ^^"
       call resize(256, 64)
       call setAnchor(0.5, 0.5, 0.5, 0.5)