From 73256d176d93b13e1d5f669abe53172eab993072 Mon Sep 17 00:00:00 2001 From: qweasz687 <66411718+qweasz687@users.noreply.github.com> Date: Tue, 10 Aug 2021 16:14:15 +0800 Subject: [PATCH] Update MotaActionParser.js --- _server/MotaActionParser.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 +}