Skip to content

Commit a3c43ea

Browse files
author
Antonino Tramontana
committed
modified references to block
1 parent 369ea57 commit a3c43ea

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/assets/toolbox_std.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,7 @@
7575
</category>
7676
<category name="Musica" colour="345">
7777
<block type="coderbot_music_note_std"></block>
78+
<block type="coderbot_animal_verse_std"></block>
79+
<block type="coderbot_music_pause_std"></block>
7880
</category>
7981
</xml>

src/components/Activity.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,7 +1781,7 @@ export default {
17811781
};
17821782
17831783
1784-
Blockly.Blocks['coderbot_music_pause'] = {
1784+
Blockly.Blocks['coderbot_music_pause_std'] = {
17851785
init: function() {
17861786
this.appendDummyInput()
17871787
.appendField(new Blockly.FieldImage("/static/images/blocks/pause_symbol.png", 30, 30, { alt: "*", flipRtl: "FALSE" }))
@@ -1801,7 +1801,7 @@ export default {
18011801
}
18021802
};
18031803
1804-
Blockly.Python['coderbot_music_pause'] = function(block) {
1804+
Blockly.Python['coderbot_music_pause_std'] = function(block) {
18051805
var value_duration = Blockly.Python.valueToCode(block, 'duration', Blockly.Python.ORDER_ATOMIC);
18061806
var code = 'get_music().play_pause("'+value_duration+'")\n';
18071807
return code;

0 commit comments

Comments
 (0)