doc: 用claude 和 gpt 弥合了下现有脚本和实际文档的区别#90
Open
starrybamboo wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the WebGAL script documentation. It introduces the new callSteam command for Steam integration, documents new parameters such as enterDuration, exitDuration, blendMode, and volume, and details advanced features like conditional choices, text input defaults, and mouth synchronization workflows. The review feedback points out a documentation inconsistency in changeFigure.md regarding the default value of duration (stated as 300 in one place and 1000 in another), which should be clarified.
| - 单位:毫秒 | ||
| - 范围:0 到正无穷 | ||
|
|
||
| 入场动画时长。若未填写,默认取 `duration` 的值(默认 300)。 |
Contributor
Member
|
请补充一下其他语言的翻译 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增页面
src/script-reference/commands/callSteam.mdcallSteam命令说明。achievementId。参数补全
src/script-reference/commands/changeBg.mdenterDuration:背景入场动画时长。exitDuration:背景退场动画时长。src/script-reference/commands/changeFigure.mdenterDuration:立绘入场动画时长。exitDuration:立绘退场动画时长。blendMode:立绘混合模式。animationFlag的说明:当前云端引擎会保存该值,但未发现后续逻辑读取它本身,因此不承诺它可驱动实际效果。src/script-reference/commands/intro.mduseForward修正为云端代码实际读取的userForward。src/script-reference/commands/playEffect.mdvolume参数,说明范围为 0 到 100。src/script-reference/commands/setTransform.mdease参数。src/script-reference/commands/getUserInput.mddefaultValue;没有defaultValue时写入一个空格。src/script-reference/commands/intro.mdintro只显示当前内容。src/script-reference/commands/choose.mdsrc/script-reference/commands/setTextbox.mdsetTextbox:on/setTextbox:show都可恢复显示。setTextbox:on;,与现有教程页保持一致。语法与工作流补充
src/webgal-script/base.md:、,、.、;、|的反斜杠转义写法。src/script-reference/commands/choose.md(条件表达式)控制显示,[条件表达式]控制可点击,->分隔条件前缀和选项内容。-when和特殊符号转义。src/script-reference/commands/jumpLabel.mdjumpLabel -when条件跳转示例。src/script-reference/commands/say.mdsrc/webgal-script/animation.mdgame/animation/animationTable.json中的预设动画清单。oldFilm、dotFilm、reflectionFilm、glitchFilm、rgbFilm、godrayFilm、removeFilm、shockwaveIn、shockwaveOut。changeFigure注册、say -vocal驱动、位置立绘示例和限制说明。UI 样式补充
src/script-reference/commands/applyStyle.mdChoose_MainChoose_item_outerChoose_itemChoose_item_disabled这些名称来自云端 WebGAL 默认模板和 choose 组件代码,不是 Terre-only 内容。
Config 与导航
src/config.mdSteam_AppID。src/.vuepress/sidebar/zh.tscallSteam。