可以控制时间的滚动剧情
This commit is contained in:
parent
e35c59ebf5
commit
99b6550fe1
@ -1078,15 +1078,15 @@ return code;
|
|||||||
*/;
|
*/;
|
||||||
|
|
||||||
overlist_s
|
overlist_s
|
||||||
: '背景' EvalString? '每句持续帧数' Int? '每句渐入渐出帧数' Int? BGNL? Newline
|
: '背景' EvalString? '每句渐入渐出帧数' Int? BGNL? Newline
|
||||||
overtextList+? Newline
|
overtextList+? Newline
|
||||||
/*overlist_s
|
/*overlist_s
|
||||||
tooltip : overlist:多行滚动旁白
|
tooltip : overlist:多行滚动旁白
|
||||||
helpUrl : /_docs/#/instruction
|
helpUrl : /_docs/#/instruction
|
||||||
allImages : ['EvalString_0']
|
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 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;
|
return code;
|
||||||
*/;
|
*/;
|
||||||
|
|
||||||
@ -1096,16 +1096,16 @@ overtextList
|
|||||||
|
|
||||||
overtext
|
overtext
|
||||||
: '文字' EvalString? BGNL? Newline
|
: '文字' EvalString? BGNL? Newline
|
||||||
'音频文件(需注册)' EvalString? '文字颜色' ColorString? Colour '描边颜色' ColorString? Colour '字体信息' EvalString? Newline
|
'音频文件(需注册)' EvalString? '显示帧数' Int? '文字颜色' ColorString? Colour '描边颜色' ColorString? Colour '字体信息' EvalString? Newline
|
||||||
|
|
||||||
/* overtext
|
/* overtext
|
||||||
tooltip : 多行滚动字幕
|
tooltip : 多行滚动字幕
|
||||||
helpUrl : /_docs/#/instruction
|
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
|
colour : this.subColor
|
||||||
allSounds : ['EvalString_1']
|
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
|
overtextEmpty
|
||||||
|
@ -683,10 +683,11 @@ MotaActionParser = function () {
|
|||||||
one[0],
|
one[0],
|
||||||
one[1],
|
one[1],
|
||||||
one[2],
|
one[2],
|
||||||
"rgba(" + one[2] + ")",
|
|
||||||
one[3],
|
one[3],
|
||||||
"rgba(" + one[3] + ")",
|
"rgba(" + one[3] + ")",
|
||||||
one[4],
|
one[4],
|
||||||
|
"rgba(" + one[4] + ")",
|
||||||
|
one[5],
|
||||||
res,
|
res,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@ -694,7 +695,6 @@ MotaActionParser = function () {
|
|||||||
};
|
};
|
||||||
this.next = MotaActionBlocks["overlist_s"].xmlText([
|
this.next = MotaActionBlocks["overlist_s"].xmlText([
|
||||||
data.image,
|
data.image,
|
||||||
data.time,
|
|
||||||
data.hidetime,
|
data.hidetime,
|
||||||
buildovertext(data.list),
|
buildovertext(data.list),
|
||||||
this.next,
|
this.next,
|
||||||
@ -2766,7 +2766,14 @@ MotaActionParser = function () {
|
|||||||
MotaActionFunctions.processovertext = function (overList) {
|
MotaActionFunctions.processovertext = function (overList) {
|
||||||
var list = [];
|
var list = [];
|
||||||
overList.forEach(function (one) {
|
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;
|
return list;
|
||||||
};
|
};
|
||||||
|
@ -42,12 +42,12 @@ main.floors.street01=
|
|||||||
{
|
{
|
||||||
"type": "overlist",
|
"type": "overlist",
|
||||||
"image": "bg_5043.png",
|
"image": "bg_5043.png",
|
||||||
"time": 100,
|
"hidetime": 30,
|
||||||
"hidetime": 60,
|
|
||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
"text": "这",
|
"text": "试试",
|
||||||
"sound": "",
|
"sound": "",
|
||||||
|
"time": 30,
|
||||||
"textColor": [
|
"textColor": [
|
||||||
255,
|
255,
|
||||||
255,
|
255,
|
||||||
@ -64,8 +64,9 @@ main.floors.street01=
|
|||||||
"frame": 0
|
"frame": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "是",
|
"text": "这可以",
|
||||||
"sound": "",
|
"sound": "",
|
||||||
|
"time": 50,
|
||||||
"textColor": [
|
"textColor": [
|
||||||
255,
|
255,
|
||||||
255,
|
255,
|
||||||
@ -82,8 +83,9 @@ main.floors.street01=
|
|||||||
"frame": 0
|
"frame": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "脏翅膀",
|
"text": "变速的脏翅膀对话",
|
||||||
"sound": "",
|
"sound": "",
|
||||||
|
"time": 80,
|
||||||
"textColor": [
|
"textColor": [
|
||||||
255,
|
255,
|
||||||
255,
|
255,
|
||||||
@ -100,26 +102,9 @@ main.floors.street01=
|
|||||||
"frame": 0
|
"frame": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "的",
|
"text": "牛逼",
|
||||||
"sound": "",
|
|
||||||
"textColor": [
|
|
||||||
255,
|
|
||||||
255,
|
|
||||||
255,
|
|
||||||
1
|
|
||||||
],
|
|
||||||
"boldColor": [
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1
|
|
||||||
],
|
|
||||||
"font": "bold 48px Verdana",
|
|
||||||
"frame": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"text": "文案",
|
|
||||||
"sound": "",
|
"sound": "",
|
||||||
|
"time": 20,
|
||||||
"textColor": [
|
"textColor": [
|
||||||
255,
|
255,
|
||||||
255,
|
255,
|
||||||
|
2168
project/plugins.js
2168
project/plugins.js
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user