stopAnimate doCallback
This commit is contained in:
parent
265bf64e5e
commit
28536f31b0
@ -2084,13 +2084,15 @@ return code;
|
|||||||
*/;
|
*/;
|
||||||
|
|
||||||
stopAnimate_s
|
stopAnimate_s
|
||||||
: '停止所有动画' Newline
|
: '停止所有动画' '执行动画回调' Bool Newline
|
||||||
|
|
||||||
/* stopAnimate_s
|
/* stopAnimate_s
|
||||||
tooltip : stopAnimate:停止所有动画
|
tooltip : stopAnimate:停止所有动画
|
||||||
helpUrl : /_docs/#/instruction
|
helpUrl : /_docs/#/instruction
|
||||||
|
default : [false]
|
||||||
colour : this.soundColor
|
colour : this.soundColor
|
||||||
var code = '{"type": "stopAnimate"},\n';
|
Bool_0 = Bool_0?', "doCallback": true':'';
|
||||||
|
var code = '{"type": "stopAnimate"'+Bool_0+'},\n';
|
||||||
return code;
|
return code;
|
||||||
*/;
|
*/;
|
||||||
|
|
||||||
|
|||||||
@ -560,7 +560,7 @@ ActionParser.prototype.parseAction = function() {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "stopAnimate": // 停止所有动画
|
case "stopAnimate": // 停止所有动画
|
||||||
this.next = MotaActionBlocks['stopAnimate_s'].xmlText([this.next]);
|
this.next = MotaActionBlocks['stopAnimate_s'].xmlText([data.doCallback||false,this.next]);
|
||||||
break;
|
break;
|
||||||
case "setViewport": // 设置视角
|
case "setViewport": // 设置视角
|
||||||
if (data.dxy) {
|
if (data.dxy) {
|
||||||
|
|||||||
@ -1536,7 +1536,7 @@ events.prototype._action_animate = function (data, x, y, prefix) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
events.prototype._action_stopAnimate = function (data, x, y, prefix) {
|
events.prototype._action_stopAnimate = function (data, x, y, prefix) {
|
||||||
core.stopAnimate();
|
core.stopAnimate(data.doCallback);
|
||||||
core.doAction();
|
core.doAction();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user