Update MotaActionParser.js
This commit is contained in:
parent
994692eaaf
commit
73256d176d
@ -560,6 +560,14 @@ ActionParser.prototype.parseAction = function() {
|
|||||||
data.loc[0],data.loc[1],data.moveMode||'', data.time||0,data.async||false,this.next]);
|
data.loc[0],data.loc[1],data.moveMode||'', data.time||0,data.async||false,this.next]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "lockViewport":
|
||||||
|
this.next = MotaActionBlocks['lockViewport_s'].xmlText([
|
||||||
|
this.next]);
|
||||||
|
break;
|
||||||
|
case "unlockViewport":
|
||||||
|
this.next = MotaActionBlocks['unlockViewport_s'].xmlText([
|
||||||
|
this.next]);
|
||||||
|
break;
|
||||||
case "vibrate": // 画面震动
|
case "vibrate": // 画面震动
|
||||||
this.next = MotaActionBlocks['vibrate_s'].xmlText([data.direction||'horizontal',
|
this.next = MotaActionBlocks['vibrate_s'].xmlText([data.direction||'horizontal',
|
||||||
data.time||0, data.speed, data.power, data.async||false, this.next]);
|
data.time||0, data.speed, data.power, data.async||false, this.next]);
|
||||||
@ -1708,4 +1716,4 @@ MotaActionFunctions.replaceFromName = function (str) {
|
|||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user