-
Notifications
You must be signed in to change notification settings - Fork 46
docs: update argument #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -214,7 +214,7 @@ changeFigure:1/open_eyes.png -eyesOpen=1/open_eyes.png; | |
| ### eyesClose | ||
| - 字符串 | ||
|
|
||
| 填写图片立绘的路径,作为睁眼时的立绘差分。 | ||
| 填写图片立绘的路径,作为闭眼时的立绘差分。 | ||
|
|
||
| ```webgal | ||
| changeFigure:1/open_eyes.png -eyesClose=1/closed_eyes.png; | ||
|
|
@@ -245,6 +245,7 @@ changeFigure:character_a/model.json -expression=sad; | |
|
|
||
| 对于 Live2D 立绘,填写 number[4] 数组,拓展或收缩立绘的显示区域。 | ||
| 以向右和向下为正方向,顺序为 `左,上,右,下`。 | ||
| x 轴以向右为正方形向,y 轴以向下为正方向。 | ||
|
|
||
| ::: warning | ||
| 此参数仅在立绘出场,或替换立绘时生效。 | ||
|
|
@@ -254,3 +255,36 @@ changeFigure:character_a/model.json -expression=sad; | |
| ; 往左和往右拓展 300 像素 | ||
| changeFigure:character_a/model.json -bounds=-300,0,300,0; | ||
| ``` | ||
|
|
||
| ### blink | ||
| - 字符串 | ||
|
|
||
| 对于 Live2D 立绘,填写 json 字符串,控制眨眼参数。 | ||
| 通常不需要书写所有的属性, 没填写的属性会继承上一次设置的值, 立绘出场时会继承默认值。 | ||
|
|
||
| 参数有 | ||
| - `"blinkInterval"`: 数字,眨眼间隔,单位毫秒,默认值 24 小时 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| - `"blinkIntervalRandom"`: 数字,眨眼间隔随机值,单位毫秒,默认值 1000 | ||
| - `"closingDuration"`: 数字,闭眼持续时间,单位毫秒,默认值 100 | ||
| - `"closedDuration"`: 数字,闭眼时间,单位毫秒,默认值 50 | ||
| - `"openingDuration"`: 数字,睁眼持续时间,单位毫秒,默认值 150 | ||
|
|
||
| ```webgal | ||
| changeFigure:character_a/model.json -blink={"blinkInterval":5000,"blinkIntervalRandom":2000,"closingDuration":100,"closedDuration":50,"openingDuration":150}; | ||
| ``` | ||
|
|
||
| ### focus | ||
| - 字符串 | ||
|
|
||
| 对于 Live2D 立绘,填写 json 字符串,控制立绘的注视参数。 | ||
| 通常不需要书写所有的属性, 没填写的属性会继承上一次设置的值, 立绘出场时会继承默认值。 | ||
| x 轴以向右为正方形向,y 轴以向上为正方向。 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| 参数有 | ||
| - `"x"`: 数字,注视点的 x 坐标,范围 -1 到 1,默认值 0 | ||
| - `"y"`: 数字,注视点的 y 坐标,范围 -1 到 1,默认值 0 | ||
| - `"instant"`: 布尔值,是否立即转向注视点,默认值 false | ||
|
|
||
| ```webgal | ||
| changeFigure:character_a/model.json -focus={"x":0.5,"y":0.2,"instant":false}; | ||
| ``` | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -41,10 +41,10 @@ setTransform:{"brightness":0.5} -target=aaa -duration=500 -writeDefault; | |||||||||||||||||||||||||||
| <!-- @include: ../arguments/keep.md --> | ||||||||||||||||||||||||||||
| ```webgal | ||||||||||||||||||||||||||||
| ; 假设这是一个特别长的动画 | ||||||||||||||||||||||||||||
| setTransform:{"scale":{"x":2,"y":2}} -target=aaa -duration=10000; | ||||||||||||||||||||||||||||
| setTransform:{"scale":{"x":2,"y":2}} -target=aaa -duration=10000 -keep; | ||||||||||||||||||||||||||||
| 角色A: 第一句话; | ||||||||||||||||||||||||||||
| 角色A: 第二句话; | ||||||||||||||||||||||||||||
| 角色A: 第三句话; | ||||||||||||||||||||||||||||
| ; 这会打断 aaa 的跨语句动画,并播放新动画 | ||||||||||||||||||||||||||||
| setTransform:{"scale":{"x":1,"y":1}} -target=aaa -duration=10000; | ||||||||||||||||||||||||||||
| setTransform:{"scale":{"x":1,"y":1}} -target=aaa -duration=10000 -keep; | ||||||||||||||||||||||||||||
|
Comment on lines
+44
to
+49
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 根据
Suggested change
|
||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里似乎有一个拼写错误,
正方形向应该为正方向。