From b1e67f62dcedbd35e1b92d1ec1c773ff74b2ef56 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Tue, 13 Aug 2024 11:50:37 -0700 Subject: [PATCH] fix: fixed bug where broadcast messages would appear in the variable dropdown list (#124) --- blocks_vertical/data.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/blocks_vertical/data.js b/blocks_vertical/data.js index b76d4ec5f5..7561156383 100644 --- a/blocks_vertical/data.js +++ b/blocks_vertical/data.js @@ -62,6 +62,8 @@ Blockly.Blocks["data_setvariableto"] = { { type: "field_variable", name: "VARIABLE", + variableTypes: [Constants.SCALAR_VARIABLE_TYPE], + defaultType: Constants.SCALAR_VARIABLE_TYPE, }, { type: "input_value", @@ -86,6 +88,8 @@ Blockly.Blocks["data_changevariableby"] = { { type: "field_variable", name: "VARIABLE", + variableTypes: [Constants.SCALAR_VARIABLE_TYPE], + defaultType: Constants.SCALAR_VARIABLE_TYPE, }, { type: "input_value", @@ -110,6 +114,8 @@ Blockly.Blocks["data_showvariable"] = { { type: "field_variable", name: "VARIABLE", + variableTypes: [Constants.SCALAR_VARIABLE_TYPE], + defaultType: Constants.SCALAR_VARIABLE_TYPE, }, ], previousStatement: null, @@ -132,6 +138,8 @@ Blockly.Blocks["data_hidevariable"] = { { type: "field_variable", name: "VARIABLE", + variableTypes: [Constants.SCALAR_VARIABLE_TYPE], + defaultType: Constants.SCALAR_VARIABLE_TYPE, }, ], previousStatement: null,