backlog制作完毕,cgText重构
This commit is contained in:
parent
4936449f67
commit
4609a85797
@ -965,8 +965,7 @@ action
|
|||||||
| animationDrawable_s
|
| animationDrawable_s
|
||||||
| over_s
|
| over_s
|
||||||
| overlist_s
|
| overlist_s
|
||||||
| playStereo_s
|
| cgtextList_s
|
||||||
| moveStereo_s
|
|
||||||
| pass_s
|
| pass_s
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -1125,22 +1124,33 @@ overtextEmpty
|
|||||||
var code = [];
|
var code = [];
|
||||||
return code;
|
return code;
|
||||||
*/;
|
*/;
|
||||||
|
cgtextList_s
|
||||||
|
: '切换剧情文本库' EvalString Newline
|
||||||
|
|
||||||
|
|
||||||
|
/* cgtextList_s
|
||||||
|
tooltip : cgtextList:设置cg剧情文本库
|
||||||
|
helpUrl : /_docs/#/instruction
|
||||||
|
default : ["chapter0"]
|
||||||
|
var code = '{"type": "cgtextList", "textList":"'+EvalString_0+'"},\n';
|
||||||
|
return code;
|
||||||
|
*/;
|
||||||
|
|
||||||
cgtext_s
|
cgtext_s
|
||||||
: '背景' EvalString? '回忆滤镜' Bool? '移除对话框' Bool? '头像' EvalString?'名字' EvalString?'坐标PX' Number'打字间隔' Int? BGNL? Newline
|
: '背景' EvalString? '回忆滤镜' Bool? '移除对话框' Bool? '剧情库序列' Int '头像' EvalString?'坐标PX' Number'打字间隔' Int? BGNL? Newline
|
||||||
'自动等待时长' Int '音频文件(需在全塔属性——使用音效注册)'EvalString? BGNL? Newline
|
'自动等待时长' Int '音频文件(需在全塔属性——使用音效注册)'EvalString? BGNL? Newline
|
||||||
EvalString? BGNL? Newline textcgDrawingList+? Newline
|
textcgDrawingList+? Newline
|
||||||
|
|
||||||
|
|
||||||
/* cgtext_s
|
/* cgtext_s
|
||||||
tooltip : cgtext:显示一段包含cg的文字(剧情)
|
tooltip : cgtext:显示一段包含cg的文字(剧情)
|
||||||
helpUrl : /_docs/#/instruction
|
helpUrl : /_docs/#/instruction
|
||||||
allImages : ['EvalString_0','EvalString_1']
|
allImages : ['EvalString_0','EvalString_1']
|
||||||
allSounds : ['EvalString_3']
|
allSounds : ['EvalString_2']
|
||||||
default : ["bg_5043.webp",false,"face_050445.webp",false,"菲奥奈",-300,0,2000,"","这句话显示在对话框内",[{ "name":"tati_050145a.webp" , "px": 100,"filter":false }]]
|
default : ["bg_5043.webp",false,false,0,"face_050445.webp",-300,0,2000,"","这句话显示在对话框内",[{ "name":"tati_050145a.webp" , "px": 100,"filter":false }]]
|
||||||
var head ='{ "name": "'+EvalString_1+'", "px": '+Number_0+' }'
|
var head ='{ "name": "'+EvalString_1+'", "px": '+Number_0+' }'
|
||||||
var list=',"bodyList": [\n'+textcgDrawingList_0.slice(0,-1)+'\n]'
|
var list=',"bodyList": [\n'+textcgDrawingList_0.slice(0,-1)+'\n]'
|
||||||
var code = '{"type": "cgtext", "bg":"'+EvalString_0+'","memory":'+Bool_0+',"WindowSkin":'+Bool_1+',"head":'+head+' ,"name":"'+EvalString_2+'","time":'+Int_0+',"wait":'+Int_1+',"sound":"'+EvalString_3+'","text": "'+EvalString_4+'"'+list+' },\n';
|
var code = '{"type": "cgtext", "bg":"'+EvalString_0+'","memory":'+Bool_0+',"WindowSkin":'+Bool_1+',"head":'+head+' ,"index":"'+Int_0+'","time":'+Int_1+',"wait":'+Int_2+',"sound":"'+EvalString_2+'"'+list+' },\n';
|
||||||
return code;
|
return code;
|
||||||
*/;
|
*/;
|
||||||
textcgDrawingList
|
textcgDrawingList
|
||||||
@ -3078,39 +3088,8 @@ var code = '{"type": "playSound", "name": "'+EvalString_0+'"'+Bool_0+IntString_0
|
|||||||
return code;
|
return code;
|
||||||
*/;
|
*/;
|
||||||
|
|
||||||
playStereo_s
|
|
||||||
: '播放音效(立体音)' EvalString '左声道音量' Int '右声道音量' Int '启用立体音' Bool? Newline
|
|
||||||
|
|
||||||
|
|
||||||
/* playStereo_s
|
|
||||||
tooltip : playSound: 播放音效(立体音)
|
|
||||||
helpUrl : /_docs/#/instruction
|
|
||||||
default : ["item.mp3",1,1,true]
|
|
||||||
colour : this.imageColor
|
|
||||||
allSounds : ['EvalString_0']
|
|
||||||
material : ["./project/sounds/", "EvalString_0"]
|
|
||||||
|
|
||||||
var code = '{"type": "playStereo", "name": "'+EvalString_0+'", "left": '+Int_0+', "right": '+Int_1+', "split": '+Bool_0+'},\n';
|
|
||||||
return code;
|
|
||||||
*/;
|
|
||||||
|
|
||||||
moveStereo_s
|
|
||||||
: '播放渐变音效(立体音)' EvalString '左声道音量' Int '右声道音量' Int '启用立体音' Bool? BGNL? Newline
|
|
||||||
'左声道目标音量' Int '右声道目标音量' Int '渐变时长'Int Newline
|
|
||||||
|
|
||||||
|
|
||||||
/* moveStereo_s
|
|
||||||
tooltip : playSound: 播放渐变音效(立体音)
|
|
||||||
helpUrl : /_docs/#/instruction
|
|
||||||
default : ["item.mp3",1,1,true,10,10,1000]
|
|
||||||
colour : this.imageColor
|
|
||||||
allSounds : ['EvalString_0']
|
|
||||||
material : ["./project/sounds/", "EvalString_0"]
|
|
||||||
|
|
||||||
var code = '{"type": "moveStereo", "name": "'+EvalString_0+'", "left": '+Int_0+', "right": '+Int_1+', "split": '+Bool_0+', "leftTo": '+Int_2+', "rightTo": '+Int_3+', "time": '+Int_4+'},\n';
|
|
||||||
return code;
|
|
||||||
*/;
|
|
||||||
|
|
||||||
playSound_1_s
|
playSound_1_s
|
||||||
: '播放系统音效' NameMap_List '停止之前音效' Bool? '音调' IntString? '等待播放完毕' Bool? Newline
|
: '播放系统音效' NameMap_List '停止之前音效' Bool? '音调' IntString? '等待播放完毕' Bool? Newline
|
||||||
|
|
||||||
|
@ -542,6 +542,12 @@ MotaActionParser = function () {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "cgtextList":
|
||||||
|
this.next = MotaActionBlocks["cgtextList_s"].xmlText([
|
||||||
|
data.textList,
|
||||||
|
this.next,
|
||||||
|
]);
|
||||||
|
break;
|
||||||
case "cgtext": // cg对话框
|
case "cgtext": // cg对话框
|
||||||
var buildcgDrawing = function (obj) {
|
var buildcgDrawing = function (obj) {
|
||||||
obj = MotaActionFunctions.processcgDrawing(obj || []);
|
obj = MotaActionFunctions.processcgDrawing(obj || []);
|
||||||
@ -563,13 +569,12 @@ MotaActionParser = function () {
|
|||||||
data.bg,
|
data.bg,
|
||||||
data.memory,
|
data.memory,
|
||||||
data.WindowSkin,
|
data.WindowSkin,
|
||||||
|
data.index,
|
||||||
data.head.name,
|
data.head.name,
|
||||||
data.name || "",
|
|
||||||
data.head.px || -300,
|
data.head.px || -300,
|
||||||
data.time,
|
data.time,
|
||||||
data.wait,
|
data.wait,
|
||||||
data.sound,
|
data.sound,
|
||||||
data.text,
|
|
||||||
buildcgDrawing(data.bodyList),
|
buildcgDrawing(data.bodyList),
|
||||||
this.next,
|
this.next,
|
||||||
]);
|
]);
|
||||||
@ -1520,27 +1525,6 @@ MotaActionParser = function () {
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "playStereo":
|
|
||||||
this.next = MotaActionBlocks["playStereo_s"].xmlText([
|
|
||||||
data.name,
|
|
||||||
data.left,
|
|
||||||
data.right,
|
|
||||||
data.split || true,
|
|
||||||
this.next,
|
|
||||||
]);
|
|
||||||
break;
|
|
||||||
case "moveStereo":
|
|
||||||
this.next = MotaActionBlocks["moveStereo_s"].xmlText([
|
|
||||||
data.name,
|
|
||||||
data.left,
|
|
||||||
data.right,
|
|
||||||
data.split || true,
|
|
||||||
data.leftTo,
|
|
||||||
data.rightTo,
|
|
||||||
data.time,
|
|
||||||
this.next,
|
|
||||||
]);
|
|
||||||
break;
|
|
||||||
case "playSound":
|
case "playSound":
|
||||||
var knownItems = MotaActionBlocks["NameMap_List"].options.map(function (
|
var knownItems = MotaActionBlocks["NameMap_List"].options.map(function (
|
||||||
one
|
one
|
||||||
|
6529
libs/control.js
6529
libs/control.js
File diff suppressed because it is too large
Load Diff
7045
libs/events.js
7045
libs/events.js
File diff suppressed because it is too large
Load Diff
1164
libs/loader.js
1164
libs/loader.js
File diff suppressed because it is too large
Load Diff
6
main.js
6
main.js
@ -909,7 +909,7 @@ main.prototype.listen = function () {
|
|||||||
////// 点击“开始游戏”时 //////
|
////// 点击“开始游戏”时 //////
|
||||||
main.dom.playGame.onclick = function () {
|
main.dom.playGame.onclick = function () {
|
||||||
main.dom.startButtons.style.display = "none";
|
main.dom.startButtons.style.display = "none";
|
||||||
main.core.control.checkBgm();
|
main.core.checkBgm();
|
||||||
|
|
||||||
if (main.levelChoose.length == 0) {
|
if (main.levelChoose.length == 0) {
|
||||||
core.events.startGame("");
|
core.events.startGame("");
|
||||||
@ -922,13 +922,13 @@ main.prototype.listen = function () {
|
|||||||
|
|
||||||
////// 点击“载入游戏”时 //////
|
////// 点击“载入游戏”时 //////
|
||||||
main.dom.loadGame.onclick = function () {
|
main.dom.loadGame.onclick = function () {
|
||||||
main.core.control.checkBgm();
|
main.core.checkBgm();
|
||||||
main.core.load();
|
main.core.load();
|
||||||
};
|
};
|
||||||
|
|
||||||
////// 点击“录像回放”时 //////
|
////// 点击“录像回放”时 //////
|
||||||
main.dom.replayGame.onclick = function () {
|
main.dom.replayGame.onclick = function () {
|
||||||
main.core.control.checkBgm();
|
main.core.checkBgm();
|
||||||
main.core.chooseReplayFile();
|
main.core.chooseReplayFile();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Binary file not shown.
BIN
project/bgms/theme.opus
Normal file
BIN
project/bgms/theme.opus
Normal file
Binary file not shown.
@ -905,7 +905,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"Halbmond.opus",
|
"Halbmond.opus",
|
||||||
"ed.opus",
|
"ed.opus",
|
||||||
"op.opus",
|
"op.opus",
|
||||||
"theme.mp3"
|
"theme.opus"
|
||||||
],
|
],
|
||||||
"sounds": [
|
"sounds": [
|
||||||
"aiy010000010.opus",
|
"aiy010000010.opus",
|
||||||
@ -998,7 +998,6 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"aiy820000010.opus",
|
"aiy820000010.opus",
|
||||||
"aiy820000020.opus",
|
"aiy820000020.opus",
|
||||||
"attack.opus",
|
"attack.opus",
|
||||||
"attack.opus",
|
|
||||||
"bomb.opus",
|
"bomb.opus",
|
||||||
"cancel.opus",
|
"cancel.opus",
|
||||||
"centerFly.opus",
|
"centerFly.opus",
|
||||||
@ -1062,7 +1061,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"饰品",
|
"饰品",
|
||||||
"饰品"
|
"饰品"
|
||||||
],
|
],
|
||||||
"startBgm": "theme.mp3",
|
"startBgm": "theme.opus",
|
||||||
"styles": {
|
"styles": {
|
||||||
"startBackground": "project/images/background.webp",
|
"startBackground": "project/images/background.webp",
|
||||||
"startVerticalBackground": "project/images/backgroundvertical.webp",
|
"startVerticalBackground": "project/images/backgroundvertical.webp",
|
||||||
@ -1446,7 +1445,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"function": "function(){\ncore.control.checkBgm()\n}"
|
"function": "function(){\ncore.checkBgm()\n}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "if",
|
"type": "if",
|
||||||
|
1430
project/events.js
1430
project/events.js
File diff suppressed because it is too large
Load Diff
@ -888,7 +888,9 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
|||||||
core.openBook(true);
|
core.openBook(true);
|
||||||
break;
|
break;
|
||||||
case 71: // G:使用楼传器
|
case 71: // G:使用楼传器
|
||||||
core.ui._drawViewMaps(core.floorIds.indexOf(core.status.floorId));
|
flags.canMoveFloor = core.canMoveFloor()
|
||||||
|
if (core.isPlaying()) core.ui._drawViewMaps(core.floorIds.indexOf(core.status.floorId));
|
||||||
|
core.status.route.push("key:71");
|
||||||
break;
|
break;
|
||||||
case 65: // A:读取自动存档(回退)
|
case 65: // A:读取自动存档(回退)
|
||||||
core.doSL("autoSave", "load");
|
core.doSL("autoSave", "load");
|
||||||
|
@ -332,7 +332,7 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
|||||||
"text": "可以自由往来去过的楼层",
|
"text": "可以自由往来去过的楼层",
|
||||||
"hideInReplay": true,
|
"hideInReplay": true,
|
||||||
"hideInToolbox": true,
|
"hideInToolbox": true,
|
||||||
"useItemEffect": "//core.ui.drawFly(core.floorIds.indexOf(core.status.floorId));\ncore.ui._drawViewMaps(core.floorIds.indexOf(core.status.floorId));",
|
"useItemEffect": "//core.ui.drawFly(core.floorIds.indexOf(core.status.floorId));\nflags.canMoveFloor = core.canMoveFloor()\nif (core.isPlaying()) core.ui._drawViewMaps(core.floorIds.indexOf(core.status.floorId));",
|
||||||
"canUseItemEffect": "(function () {\n\tif (core.flags.flyNearStair && !core.nearStair() && !core.canMoveFloor())\n\t\treturn false;\n\treturn core.status.maps[core.status.floorId].canFlyFrom;\n})();"
|
"canUseItemEffect": "(function () {\n\tif (core.flags.flyNearStair && !core.nearStair() && !core.canMoveFloor())\n\t\treturn false;\n\treturn core.status.maps[core.status.floorId].canFlyFrom;\n})();"
|
||||||
},
|
},
|
||||||
"coin": {
|
"coin": {
|
||||||
|
17331
project/plugins.js
17331
project/plugins.js
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user