From ef17bde645b04446c29491c1e2ee90f869f3ca54 Mon Sep 17 00:00:00 2001 From: Mistium <92952823+Mistium@users.noreply.github.com> Date: Sat, 11 May 2024 15:10:55 +0100 Subject: [PATCH] Update OASM.js --- featured/OASM.js | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/featured/OASM.js b/featured/OASM.js index a4c9105..68f7def 100644 --- a/featured/OASM.js +++ b/featured/OASM.js @@ -19,9 +19,9 @@ name: 'OASM', blocks: [ { - func: "docs", + func: 'docs', blockType: Scratch.BlockType.BUTTON, - text: "Learn OASM", + text: 'Learn OASM', }, { opcode: 'compile', @@ -30,7 +30,27 @@ arguments: { CODE: { type: Scratch.ArgumentType.STRING, - defaultValue: "[\"setv msg hello\",\"prnt msg\"]" + defaultValue: '["setv msg hello","prnt msg"]' + }, + }, + }, + { + opcode: 'runblock', + func: 'run', + blockType: Scratch.BlockType.COMMAND, + text: 'Run At [X],[Y] Code: [CODE]', + arguments: { + CODE: { + type: Scratch.ArgumentType.STRING, + defaultValue: '' + }, + X: { + type: Scratch.ArgumentType.NUMBER, + defaultValue: 0 + }, + Y: { + type: Scratch.ArgumentType.NUMBER, + defaultValue: 0 }, }, }, @@ -41,7 +61,7 @@ arguments: { CODE: { type: Scratch.ArgumentType.STRING, - defaultValue: "" + defaultValue: '' }, X: { type: Scratch.ArgumentType.NUMBER,