Support animateImage & showImage
This commit is contained in:
parent
1b32ad1de2
commit
d31b864ad4
@ -2205,7 +2205,7 @@ ActionParser.prototype.parseAction = function() {
|
|||||||
case "showImage": // 显示图片
|
case "showImage": // 显示图片
|
||||||
data.loc=data.loc||['','']
|
data.loc=data.loc||['','']
|
||||||
this.next = MotaActionBlocks['showImage_s'].xmlText([
|
this.next = MotaActionBlocks['showImage_s'].xmlText([
|
||||||
data.code,data.image,data.loc[0],data.loc[1],data.dw,data.dh,data.opacity,data.time||0,data.async||false,this.next]);
|
data.code,data.image||data.name,data.loc[0],data.loc[1],data.dw,data.dh,data.opacity,data.time||0,data.async||false,this.next]);
|
||||||
break;
|
break;
|
||||||
case "hideImage": // 清除图片
|
case "hideImage": // 清除图片
|
||||||
this.next = MotaActionBlocks['hideImage_s'].xmlText([
|
this.next = MotaActionBlocks['hideImage_s'].xmlText([
|
||||||
@ -2436,6 +2436,8 @@ ActionParser.prototype.parseAction = function() {
|
|||||||
this.next = MotaActionBlocks['exit_s'].xmlText([
|
this.next = MotaActionBlocks['exit_s'].xmlText([
|
||||||
this.next]);
|
this.next]);
|
||||||
break;
|
break;
|
||||||
|
case "animateImage": // 兼容 animateImage
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Error("[警告]出错啦!\n"+data.type+" 事件不被支持...");
|
throw new Error("[警告]出错啦!\n"+data.type+" 事件不被支持...");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user