From 7d0c45546c363c30c2e5b802caa6458ba8674fcf Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Wed, 13 Jun 2018 15:52:51 -0400 Subject: [PATCH 1/2] Add extension status button XML --- src/engine/runtime.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/engine/runtime.js b/src/engine/runtime.js index cf6d90a67..2c90b7393 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -546,6 +546,16 @@ class Runtime extends EventEmitter { categoryInfo.menus.push(convertedMenu); } } + + // Add extension status button + if (extensionInfo.showStatusButton) { + categoryInfo.blocks.push({ + info: {}, + json: null, + xml: `` + }); + } + for (const blockInfo of extensionInfo.blocks) { if (blockInfo === '---') { categoryInfo.blocks.push(ConvertedSeparator); From c2b262ba97c7241ccef767d7f7aa4e18d265e679 Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Wed, 13 Jun 2018 15:53:05 -0400 Subject: [PATCH 2/2] Add status button to microbit extension --- src/extensions/scratch3_microbit/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/extensions/scratch3_microbit/index.js b/src/extensions/scratch3_microbit/index.js index 3dc801d70..8bf56b2a8 100644 --- a/src/extensions/scratch3_microbit/index.js +++ b/src/extensions/scratch3_microbit/index.js @@ -318,6 +318,7 @@ class Scratch3MicroBitBlocks { name: Scratch3MicroBitBlocks.EXTENSION_NAME, menuIconURI: menuIconURI, blockIconURI: blockIconURI, + showStatusButton: true, blocks: [ { opcode: 'whenButtonPressed',