diff --git a/_server/MotaActionParser.js b/_server/MotaActionParser.js index fa6e9ab5..e25069b4 100644 --- a/_server/MotaActionParser.js +++ b/_server/MotaActionParser.js @@ -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; } -} \ No newline at end of file +}