滚动剧情&多人立绘

This commit is contained in:
草莓 2024-12-28 23:53:21 +08:00
parent 576a5e0a3b
commit e35c59ebf5
5 changed files with 2896 additions and 2514 deletions

View File

@ -954,6 +954,7 @@ action
| drawWarning_s
| addPop_s
| over_s
| overlist_s
| playStereo_s
| moveStereo_s
| pass_s
@ -1076,10 +1077,49 @@ var code = '{"type": "over", "text": "'+EvalString_0+'","image":"'+EvalString_1+
return code;
*/;
overlist_s
: '背景' EvalString? '每句持续帧数' Int? '每句渐入渐出帧数' Int? BGNL? Newline
overtextList+? Newline
/*overlist_s
tooltip : overlist多行滚动旁白
helpUrl : /_docs/#/instruction
allImages : ['EvalString_0']
default : ["bg_5043.png",50,30,[{ "text":"" ,"sound":"","textColor":"255,255,255,1","boldColor":"0,0,0,1","font":"bold 48px Verdana","frame":0}]]
var list=',"list": [\n'+overtextList_0.slice(0,-1)+'\n]'
var code = '{"type": "overlist", "image": "'+EvalString_0+'","time":'+Int_0+',"hidetime":'+Int_1+''+list+' },\n';
return code;
*/;
overtextList
: overtext
| overtextEmpty;
overtext
: '文字' EvalString? BGNL? Newline
'音频文件(需注册)' EvalString? '文字颜色' ColorString? Colour '描边颜色' ColorString? Colour '字体信息' EvalString? Newline
/* overtext
tooltip : 多行滚动字幕
helpUrl : /_docs/#/instruction
default : ["","","255,255,255,1",'rgba(255,255,255,1)',"0,0,0,1",'rgba(0,0,0,1)','bold 48px Verdana']
colour : this.subColor
allSounds : ['EvalString_1']
return '{ "text":"'+EvalString_0+'","sound": "'+EvalString_1+'","textColor": ['+ColorString_0+'],"boldColor": ['+ColorString_1+'],"font": "'+EvalString_2+'","frame":0},'
*/;
overtextEmpty
: Newline
/* overtextEmpty
var code = [];
return code;
*/;
cgtext_s
: '背景' EvalString? '移除对话框' Bool? '头像' EvalString?'名字' EvalString?'坐标PX' Number'打字间隔' Int? BGNL? Newline
'自动等待时长' Int '音频文件(需在全塔属性——使用音效注册)'EvalString? BGNL? Newline
EvalString? BGNL? Newline textcgDrawingList*? Newline
EvalString? BGNL? Newline textcgDrawingList+? Newline
/* cgtext_s
@ -1089,7 +1129,7 @@ allImages : ['EvalString_0','EvalString_1']
allSounds : ['EvalString_3']
default : ["bg_5043.png","face_050445.png",false,"菲奥奈",-300,0,2000,"","这句话显示在对话框内",[{ "name":"tati_050145a.png" , "px": 100,"filter":false }]]
var head ='{ "name": "'+EvalString_1+'", "px": '+Number_0+' }'
var list=',"bodyList": [\n'+textcgDrawingList_0+'\n]'
var list=',"bodyList": [\n'+textcgDrawingList_0.slice(0,-1)+'\n]'
var code = '{"type": "cgtext", "bg":"'+EvalString_0+'","WindowSkin":'+Bool_0+',"head":'+head+' ,"name":"'+EvalString_2+'","time":'+Int_0+',"wait":'+Int_1+',"sound":"'+EvalString_3+'","text": "'+EvalString_4+'"'+list+' },\n';
return code;
*/;
@ -1107,7 +1147,7 @@ default : ["tati_050145a.png",100,false]
colour : this.subColor
allImages : ['EvalString_0']
return '{ "name": "'+EvalString_0+'", "px": '+Number_0+',"filter":'+Bool_0+' }'
return '{ "name": "'+EvalString_0+'", "px": '+Number_0+',"filter":'+Bool_0+' },'
*/;
textcgDrawingEmpty

View File

@ -674,6 +674,32 @@ MotaActionParser = function () {
this.next,
]);
break;
case "overlist":
var buildovertext = function (obj) {
obj = MotaActionFunctions.processovertext(obj || []);
var res = null;
for (var ii = obj.length - 1, one; (one = obj[ii]); ii--) {
res = MotaActionBlocks["overtext"].xmlText([
one[0],
one[1],
one[2],
"rgba(" + one[2] + ")",
one[3],
"rgba(" + one[3] + ")",
one[4],
res,
]);
}
return res;
};
this.next = MotaActionBlocks["overlist_s"].xmlText([
data.image,
data.time,
data.hidetime,
buildovertext(data.list),
this.next,
]);
break;
case "tip":
this.next = MotaActionBlocks["tip_s"].xmlText([
data.text,
@ -2737,6 +2763,13 @@ MotaActionParser = function () {
});
return list;
};
MotaActionFunctions.processovertext = function (overList) {
var list = [];
overList.forEach(function (one) {
list.push([one.text, one.sound, one.textColor, one.boldColor, one.font]);
});
return list;
};
MotaActionFunctions.processMultiLoc = function (EvalString_0, EvalString_1) {
var floorstr = "";

View File

@ -1 +1 @@
{"viewportLoc":[0,0],"editorLastFloorId":"street02"}
{"viewportLoc":[0,0],"editorLastFloorId":"street01"}

View File

@ -31,6 +31,112 @@ main.floors.street01=
"type": "insert",
"name": "chapter01"
}
],
"6,11": [
{
"type": "insert",
"name": "chapter01"
}
],
"4,11": [
{
"type": "overlist",
"image": "bg_5043.png",
"time": 100,
"hidetime": 60,
"list": [
{
"text": "这",
"sound": "",
"textColor": [
255,
255,
255,
1
],
"boldColor": [
0,
0,
0,
1
],
"font": "bold 48px Verdana",
"frame": 0
},
{
"text": "是",
"sound": "",
"textColor": [
255,
255,
255,
1
],
"boldColor": [
0,
0,
0,
1
],
"font": "bold 48px Verdana",
"frame": 0
},
{
"text": "脏翅膀",
"sound": "",
"textColor": [
255,
255,
255,
1
],
"boldColor": [
0,
0,
0,
1
],
"font": "bold 48px Verdana",
"frame": 0
},
{
"text": "的",
"sound": "",
"textColor": [
255,
255,
255,
1
],
"boldColor": [
0,
0,
0,
1
],
"font": "bold 48px Verdana",
"frame": 0
},
{
"text": "文案",
"sound": "",
"textColor": [
255,
255,
255,
1
],
"boldColor": [
0,
0,
0,
1
],
"font": "bold 48px Verdana",
"frame": 0
}
]
}
]
},
"changeFloor": {

File diff suppressed because it is too large Load Diff