-
-
Notifications
You must be signed in to change notification settings - Fork 338
Expand file tree
/
Copy pathscriptConfig.ts
More file actions
62 lines (60 loc) · 2.9 KB
/
scriptConfig.ts
File metadata and controls
62 lines (60 loc) · 2.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import {commandType} from '../interface/sceneInterface';
export const SCRIPT_CONFIG = [
{ scriptString: 'say', scriptType: commandType.say },
{ scriptString: 'changeBg', scriptType: commandType.changeBg },
{ scriptString: 'changeFigure', scriptType: commandType.changeFigure },
{ scriptString: 'bgm', scriptType: commandType.bgm },
{ scriptString: 'playVideo', scriptType: commandType.video },
{ scriptString: 'pixiPerform', scriptType: commandType.pixi },
{ scriptString: 'pixiInit', scriptType: commandType.pixiInit },
{ scriptString: 'intro', scriptType: commandType.intro },
{ scriptString: 'miniAvatar', scriptType: commandType.miniAvatar },
{ scriptString: 'changeScene', scriptType: commandType.changeScene },
{ scriptString: 'choose', scriptType: commandType.choose },
{ scriptString: 'end', scriptType: commandType.end },
{
scriptString: 'setComplexAnimation',
scriptType: commandType.setComplexAnimation,
},
{ scriptString: 'setFilter', scriptType: commandType.setFilter },
{ scriptString: 'label', scriptType: commandType.label },
{ scriptString: 'jumpLabel', scriptType: commandType.jumpLabel },
{ scriptString: 'chooseLabel', scriptType: commandType.chooseLabel },
{ scriptString: 'setVar', scriptType: commandType.setVar },
{ scriptString: 'if', scriptType: commandType.if },
{ scriptString: 'callScene', scriptType: commandType.callScene },
{ scriptString: 'showVars', scriptType: commandType.showVars },
{ scriptString: 'unlockCg', scriptType: commandType.unlockCg },
{ scriptString: 'unlockBgm', scriptType: commandType.unlockBgm },
{ scriptString: 'filmMode', scriptType: commandType.filmMode },
{ scriptString: 'setTextbox', scriptType: commandType.setTextbox },
{ scriptString: 'setAnimation', scriptType: commandType.setAnimation },
{ scriptString: 'playEffect', scriptType: commandType.playEffect },
{ scriptString: 'setTempAnimation', scriptType: commandType.setTempAnimation },
// comment?
{ scriptString: 'setTransform', scriptType: commandType.setTransform },
{ scriptString: 'setTransition', scriptType: commandType.setTransition },
{ scriptString: 'getUserInput', scriptType: commandType.getUserInput },
{ scriptString: 'applyStyle', scriptType: commandType.applyStyle },
{ scriptString: 'wait', scriptType: commandType.wait },
{ scriptString: 'callSteam', scriptType: commandType.callSteam },
{ scriptString: 'setStatusBar', scriptType: commandType.setStatusBar },
];
export const ADD_NEXT_ARG_LIST = [
commandType.bgm,
commandType.pixi,
commandType.pixiInit,
commandType.miniAvatar,
commandType.label,
commandType.if,
commandType.setVar,
commandType.unlockCg,
commandType.unlockBgm,
commandType.filmMode,
commandType.playEffect,
commandType.setTransition,
commandType.applyStyle,
commandType.callSteam,
];
export type ConfigMap = Map<string, ConfigItem>;
export type ConfigItem = { scriptString: string; scriptType: commandType };