Skip to content

Commit

Permalink
update (blockly): new sequence example
Browse files Browse the repository at this point in the history
  • Loading branch information
santanche committed Jul 26, 2023
1 parent 064e685 commit 650c1f6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
23 changes: 22 additions & 1 deletion frameworks/blockly/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,25 @@ Blockly.Blocks['heart_image'] = {
output: 'Ekg'
})
}
}
}

Blockly.Blocks['sequence'] = {
init: function () {
this.jsonInit({
"message0": "%1 onda %2 elétrico",
"args0": [
{
"type": "input_value",
"name": "VALUE",
"check": "Ekg"
},
{
"type": "input_value",
"name": "VALUE",
"check": "Ekg"
},
],
colour: 250
})
}
}
1 change: 1 addition & 0 deletions frameworks/blockly/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<xml id="toolbox" style="display: none">
<block type="heart"></block>
<block type="heart_image"></block>
<block type="sequence"></block>
</xml>
<script>
var workspace = Blockly.inject('blocklyDiv',
Expand Down

0 comments on commit 650c1f6

Please sign in to comment.