mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-30 16:10:08 -04:00
Enable extension monitors, add flag to disable
Extension reporters now offer a monitor checkbox by default, unless the `disableMonitor` flag is set in the extension block metadata.
This commit is contained in:
parent
b41423bdfa
commit
701fb6c1c5
2 changed files with 4 additions and 0 deletions
src/engine
|
@ -745,6 +745,9 @@ class Runtime extends EventEmitter {
|
|||
case BlockType.REPORTER:
|
||||
blockJSON.output = 'String'; // TODO: distinguish number & string here?
|
||||
blockJSON.outputShape = ScratchBlocksConstants.OUTPUT_SHAPE_ROUND;
|
||||
if (!blockInfo.disableMonitor) {
|
||||
blockJSON.checkboxInFlyout = true;
|
||||
}
|
||||
break;
|
||||
case BlockType.BOOLEAN:
|
||||
blockJSON.output = 'Boolean';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue