Skip to content

Commit 9dbd3c9

Browse files
author
Hardy--Lee
committed
docs: add blink and focus
1 parent eb3a5c0 commit 9dbd3c9

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

src/script-reference/commands/changeFigure.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ changeFigure:character_a/model.json -expression=sad;
245245

246246
对于 Live2D 立绘,填写 number[4] 数组,拓展或收缩立绘的显示区域。
247247
以向右和向下为正方向,顺序为 `左,上,右,下`
248+
x 轴以向右为正方形向,y 轴以向下为正方向。
248249

249250
::: warning
250251
此参数仅在立绘出场,或替换立绘时生效。
@@ -254,3 +255,36 @@ changeFigure:character_a/model.json -expression=sad;
254255
; 往左和往右拓展 300 像素
255256
changeFigure:character_a/model.json -bounds=-300,0,300,0;
256257
```
258+
259+
### blink
260+
- 字符串
261+
262+
对于 Live2D 立绘,填写 json 字符串,控制眨眼参数。
263+
通常不需要书写所有的属性, 没填写的属性会继承上一次设置的值, 立绘出场时会继承默认值。
264+
265+
参数有
266+
- `"blinkInterval"`: 数字,眨眼间隔,单位毫秒,默认值 24 小时
267+
- `"blinkIntervalRandom"`: 数字,眨眼间隔随机值,单位毫秒,默认值 1000
268+
- `"closingDuration"`: 数字,闭眼持续时间,单位毫秒,默认值 100
269+
- `"closedDuration"`: 数字,闭眼时间,单位毫秒,默认值 50
270+
- `"openingDuration"`: 数字,睁眼持续时间,单位毫秒,默认值 150
271+
272+
```webgal
273+
changeFigure:character_a/model.json -blink={"blinkInterval":5000,"blinkIntervalRandom":2000,"closingDuration":100,"closedDuration":50,"openingDuration":150};
274+
```
275+
276+
### focus
277+
- 字符串
278+
279+
对于 Live2D 立绘,填写 json 字符串,控制立绘的注视参数。
280+
通常不需要书写所有的属性, 没填写的属性会继承上一次设置的值, 立绘出场时会继承默认值。
281+
x 轴以向右为正方形向,y 轴以向上为正方向。
282+
283+
参数有
284+
- `"x"`: 数字,注视点的 x 坐标,范围 -1 到 1,默认值 0
285+
- `"y"`: 数字,注视点的 y 坐标,范围 -1 到 1,默认值 0
286+
- `"instant"`: 布尔值,是否立即转向注视点,默认值 false
287+
288+
```webgal
289+
changeFigure:character_a/model.json -focus={"x":0.5,"y":0.2,"instant":false};
290+
```

0 commit comments

Comments
 (0)