From 650c1f627bf305b552231dc7c812b29fddc1849d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Santanch=C3=A8?= Date: Wed, 26 Jul 2023 14:43:07 -0300 Subject: [PATCH] update (blockly): new sequence example --- frameworks/blockly/blocks.js | 23 ++++++++++++++++++++++- frameworks/blockly/index.html | 1 + 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/frameworks/blockly/blocks.js b/frameworks/blockly/blocks.js index 02a20d5..2b6d7e5 100644 --- a/frameworks/blockly/blocks.js +++ b/frameworks/blockly/blocks.js @@ -61,4 +61,25 @@ Blockly.Blocks['heart_image'] = { output: 'Ekg' }) } -} \ No newline at end of file +} + +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 + }) +} +} diff --git a/frameworks/blockly/index.html b/frameworks/blockly/index.html index 45d4f77..f4c69dc 100644 --- a/frameworks/blockly/index.html +++ b/frameworks/blockly/index.html @@ -9,6 +9,7 @@