Update MotaActionParser.js

This commit is contained in:
qweasz687 2021-08-10 16:14:15 +08:00 committed by GitHub
parent 994692eaaf
commit 73256d176d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -560,6 +560,14 @@ ActionParser.prototype.parseAction = function() {
data.loc[0],data.loc[1],data.moveMode||'', data.time||0,data.async||false,this.next]);
}
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": // 画面震动
this.next = MotaActionBlocks['vibrate_s'].xmlText([data.direction||'horizontal',
data.time||0, data.speed, data.power, data.async||false, this.next]);
@ -1708,4 +1716,4 @@ MotaActionFunctions.replaceFromName = function (str) {
return str;
}
}
}