可以控制时间的滚动剧情

This commit is contained in:
草莓 2024-12-29 13:11:43 +08:00
parent e35c59ebf5
commit 99b6550fe1
4 changed files with 1108 additions and 1118 deletions

View File

@ -1078,15 +1078,15 @@ return code;
*/;
overlist_s
: '背景' EvalString? '每句持续帧数' Int? '每句渐入渐出帧数' Int? BGNL? Newline
: '背景' EvalString? '每句渐入渐出帧数' 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}]]
default : ["bg_5043.png",30,[{ "text":"" ,"sound":"","time":50,"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';
var code = '{"type": "overlist", "image": "'+EvalString_0+'","hidetime":'+Int_0+''+list+' },\n';
return code;
*/;
@ -1096,16 +1096,16 @@ overtextList
overtext
: '文字' EvalString? BGNL? Newline
'音频文件(需注册)' EvalString? '文字颜色' ColorString? Colour '描边颜色' ColorString? Colour '字体信息' EvalString? Newline
'音频文件(需注册)' EvalString? '显示帧数' Int? '文字颜色' 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']
default : ["","",50,"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},'
return '{ "text":"'+EvalString_0+'","sound": "'+EvalString_1+'","time":'+Int_0+',"textColor": ['+ColorString_0+'],"boldColor": ['+ColorString_1+'],"font": "'+EvalString_2+'","frame":0},'
*/;
overtextEmpty

View File

@ -683,10 +683,11 @@ MotaActionParser = function () {
one[0],
one[1],
one[2],
"rgba(" + one[2] + ")",
one[3],
"rgba(" + one[3] + ")",
one[4],
"rgba(" + one[4] + ")",
one[5],
res,
]);
}
@ -694,7 +695,6 @@ MotaActionParser = function () {
};
this.next = MotaActionBlocks["overlist_s"].xmlText([
data.image,
data.time,
data.hidetime,
buildovertext(data.list),
this.next,
@ -2766,7 +2766,14 @@ MotaActionParser = function () {
MotaActionFunctions.processovertext = function (overList) {
var list = [];
overList.forEach(function (one) {
list.push([one.text, one.sound, one.textColor, one.boldColor, one.font]);
list.push([
one.text,
one.sound,
one.time,
one.textColor,
one.boldColor,
one.font,
]);
});
return list;
};

View File

@ -42,12 +42,12 @@ main.floors.street01=
{
"type": "overlist",
"image": "bg_5043.png",
"time": 100,
"hidetime": 60,
"hidetime": 30,
"list": [
{
"text": "",
"text": "试试",
"sound": "",
"time": 30,
"textColor": [
255,
255,
@ -64,8 +64,9 @@ main.floors.street01=
"frame": 0
},
{
"text": "",
"text": "这可以",
"sound": "",
"time": 50,
"textColor": [
255,
255,
@ -82,8 +83,9 @@ main.floors.street01=
"frame": 0
},
{
"text": "脏翅膀",
"text": "变速的脏翅膀对话",
"sound": "",
"time": 80,
"textColor": [
255,
255,
@ -100,26 +102,9 @@ main.floors.street01=
"frame": 0
},
{
"text": "的",
"sound": "",
"textColor": [
255,
255,
255,
1
],
"boldColor": [
0,
0,
0,
1
],
"font": "bold 48px Verdana",
"frame": 0
},
{
"text": "文案",
"text": "牛逼",
"sound": "",
"time": 20,
"textColor": [
255,
255,

File diff suppressed because it is too large Load Diff