Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/en/spine.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ If you are using a JSON format Spine sprite, you need to pass in the type using
changeFigure:exampleSpine/data.json?type=spine;
```

Use the `motion` argument to switch Spine animations. If you also need to switch the Spine skin, pass the `skin` argument.

```
changeFigure:exampleSpine/data.json?type=spine -motion=anime_00_wait;
changeFigure:exampleSpine/data.json?type=spine -skin=default;
changeFigure:exampleSpine/data.json?type=spine -motion=anime_03_surprise -skin=03_surprise;
```

6. If you need to build a production package or use it in WebGAL Terre, run the `yarn build` command to build WebGAL. After completion, please refer to [How to use a custom engine](derivative) to use the modified engine.

### Important Notice
Expand Down
8 changes: 8 additions & 0 deletions src/ja/spine.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ JSON形式のSpine立ち絵を使用している場合は、エンジンがSpine
changeFigure:exampleSpine/data.json?type=spine;
```

Spineのアニメーションを切り替える場合は `motion` 引数を使います。Spineのskinも切り替えたい場合は、追加で `skin` 引数を指定します。

```
changeFigure:exampleSpine/data.json?type=spine -motion=anime_00_wait;
changeFigure:exampleSpine/data.json?type=spine -skin=default;
changeFigure:exampleSpine/data.json?type=spine -motion=anime_03_surprise -skin=03_surprise;
```

6. 本番用パッケージをビルドする場合、またはWebGAL Terreで使用する場合は、`yarn build`コマンドを実行してWebGALをビルドします。完了したら、[カスタムエンジンの使用方法](derivative) を参照して、変更後のエンジンを使用してください。


Expand Down
11 changes: 11 additions & 0 deletions src/script-reference/commands/changeFigure.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,17 @@ changeFigure:character_a/model.json -motion=sad;
changeFigure:character_a/model.json -motion=smile;
```

### skin
- 字符串

对于 Spine 立绘,填写皮肤名称,切换到对应的 skin。
如需同时切换 Spine 的动画与皮肤,继续使用 `motion` 指定动画,使用 `skin` 指定皮肤。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

建议优化此处的措辞,使其更清晰地表达 motionskin 参数可以同时使用。当前的“继续使用”可能会引起一些困惑。

Suggested change
如需同时切换 Spine 的动画与皮肤,继续使用 `motion` 指定动画,使用 `skin` 指定皮肤
如需同时切换 Spine 的动画与皮肤,可同时使用 `motion` 参数指定动画,并使用 `skin` 参数指定皮肤


```webgal
changeFigure:character_x/model.json?type=spine -skin=default;
changeFigure:character_x/model.json?type=spine -motion=anime_00_wait -skin=03_surprise;
```

### expression
- 字符串

Expand Down
10 changes: 9 additions & 1 deletion src/spine.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ game/
changeFigure:exampleSpine/data.json?type=spine;
```

如果你需要切换 Spine 动画,继续使用 `motion` 参数;如果你需要切换 Spine 的皮肤,则使用 `skin` 参数。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

此处的说明可以更清晰一些。首先,“继续使用”的说法可能不准确,因为这部分文档是初次介绍 Spine 功能。其次,文本没有明确说明 motionskin 可以同时使用,但下方的示例却展示了这一点。建议修改以提高清晰度。

Suggested change
如果你需要切换 Spine 动画,继续使用 `motion` 参数;如果你需要切换 Spine 的皮肤,则使用 `skin` 参数。
如果你需要切换 Spine 动画,可使用 `motion` 参数;如果需要切换皮肤,可使用 `skin` 参数。这两个参数也可以同时使用


```
changeFigure:exampleSpine/data.json?type=spine -motion=anime_00_wait;
changeFigure:exampleSpine/data.json?type=spine -skin=default;
changeFigure:exampleSpine/data.json?type=spine -motion=anime_03_surprise -skin=03_surprise;
```

6、如果你需要构建生产包,或在 WebGAL Terre 中使用,请运行 `yarn build` 指令构建 WebGAL。完成后,请参考 [如何使用定制引擎](derivative) 使用修改后的引擎。

### 重要提示
Expand All @@ -97,4 +105,4 @@ changeFigure:exampleSpine/data.json?type=spine;

总而言之,如果您选择在 WebGAL 中集成或使用 Spine 功能,您必须确保已经合法获得了 Spine 编辑器的授权许可证,并且承诺遵守所有相关的许可证条款与规定。否则,所有由此产生的风险、责任及后果,均由您个人或您的组织承担,与 WebGAL 项目团队无关。

使用本软件即表示您已阅读、理解并同意以上免责声明的全部内容。如果您不同意这些条款,请立即停止使用集成了 Spine 功能的 WebGAL 版本。
使用本软件即表示您已阅读、理解并同意以上免责声明的全部内容。如果您不同意这些条款,请立即停止使用集成了 Spine 功能的 WebGAL 版本。
Loading