Skip to content

Commit 4d45b4d

Browse files
authored
live_tests.js -- init expandable case block
1 parent eb85399 commit 4d45b4d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

blocks_vertical/live_tests.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@ goog.require('Blockly.Blocks');
66
goog.require('Blockly.Colours');
77
goog.require('Blockly.ScratchBlocks.VerticalExtensions');
88

9+
Blockly.Blocks['control_expandableCase'] = {
10+
init: function() {
11+
this.jsonInit({
12+
"message0": '%1 %2',
13+
"args0": [
14+
{
15+
"type": "field_expandable_remove",
16+
"name": "REMOVE"
17+
},
18+
{
19+
"type": "field_expandable_add",
20+
"name": "ADD"
21+
}
22+
],
23+
"category": Blockly.Categories.control,
24+
"extensions": ["colours_control", "shape_case"]
25+
});
26+
}
27+
};
28+
929
Blockly.Blocks['looks_setVertTransform'] = {
1030
/**
1131
* Block to report properties of sprites.

0 commit comments

Comments
 (0)