Skip to content

Commit ae46e22

Browse files
author
Antonino Tramontana
committed
Added animal verse block
1 parent a226efb commit ae46e22

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/components/Activity.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,6 +1689,18 @@ export default {
16891689
16901690
};
16911691
1692+
Blockly.Blocks['coderbot_animal_verse'] = {
1693+
init: function() {
1694+
this.appendDummyInput()
1695+
.appendField(new Blockly.FieldImage("https://upload.wikimedia.org/wikipedia/commons/7/71/Paw_%28Animal_Rights_symbol%29.svg", 15, 15, { alt: "*", flipRtl: "FALSE" }))
1696+
.appendField("Verso del")
1697+
.appendField(new Blockly.FieldDropdown([["Gatto","cat"], ["Cane","dog"]]), "Verso del");
1698+
this.setColour(345);
1699+
this.setTooltip("Verso animale");
1700+
this.setHelpUrl("");
1701+
}
1702+
};
1703+
16921704
Blockly.Python['coderbot_audio_listen'] = function(block) {
16931705
// Boolean values true and false.
16941706
var model = block.getFieldValue('MODEL');

0 commit comments

Comments
 (0)