Skip to content

Commit b1e67f6

Browse files
authored
fix: fixed bug where broadcast messages would appear in the variable dropdown list (#124)
1 parent 22a6b73 commit b1e67f6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

blocks_vertical/data.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ Blockly.Blocks["data_setvariableto"] = {
6262
{
6363
type: "field_variable",
6464
name: "VARIABLE",
65+
variableTypes: [Constants.SCALAR_VARIABLE_TYPE],
66+
defaultType: Constants.SCALAR_VARIABLE_TYPE,
6567
},
6668
{
6769
type: "input_value",
@@ -86,6 +88,8 @@ Blockly.Blocks["data_changevariableby"] = {
8688
{
8789
type: "field_variable",
8890
name: "VARIABLE",
91+
variableTypes: [Constants.SCALAR_VARIABLE_TYPE],
92+
defaultType: Constants.SCALAR_VARIABLE_TYPE,
8993
},
9094
{
9195
type: "input_value",
@@ -110,6 +114,8 @@ Blockly.Blocks["data_showvariable"] = {
110114
{
111115
type: "field_variable",
112116
name: "VARIABLE",
117+
variableTypes: [Constants.SCALAR_VARIABLE_TYPE],
118+
defaultType: Constants.SCALAR_VARIABLE_TYPE,
113119
},
114120
],
115121
previousStatement: null,
@@ -132,6 +138,8 @@ Blockly.Blocks["data_hidevariable"] = {
132138
{
133139
type: "field_variable",
134140
name: "VARIABLE",
141+
variableTypes: [Constants.SCALAR_VARIABLE_TYPE],
142+
defaultType: Constants.SCALAR_VARIABLE_TYPE,
135143
},
136144
],
137145
previousStatement: null,

0 commit comments

Comments
 (0)