From 7b10180c9f1c716437b32134b6ee7c6a1cfd4f90 Mon Sep 17 00:00:00 2001 From: LilyMakesThings <127533508+LilyMakesThings@users.noreply.github.com> Date: Wed, 24 Jan 2024 02:14:38 +0000 Subject: [PATCH] Add BlockType.INLINE --- src/engine/runtime.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine/runtime.js b/src/engine/runtime.js index 6fc794268f7..448bf8e1ea1 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -1414,6 +1414,11 @@ class Runtime extends EventEmitter { blockJSON.nextStatement = null; // null = available connection; undefined = terminal } break; + case BlockType.INLINE: + blockInfo.branchCount = blockInfo.branchCount || 1; + blockJSON.output = blockInfo.allowDropAnywhere ? null : 'String'; // TODO: distinguish number & string here? + blockJSON.outputShape = ScratchBlocksConstants.OUTPUT_SHAPE_SQUARE; + break; } const blockText = Array.isArray(blockInfo.text) ? blockInfo.text : [blockInfo.text];