Skip to content

Commit bb493f0

Browse files
author
Antonino Tramontana
committed
added pause block
1 parent 0ba0ffd commit bb493f0

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

src/components/Activity.vue

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1781,7 +1781,27 @@ export default {
17811781
};
17821782
17831783
1784-
1784+
Blockly.Blocks['coderbot_music_pause'] = {
1785+
init: function() {
1786+
this.appendDummyInput()
1787+
.appendField(new Blockly.FieldImage("/static/images/blocks/pause_symbol.png", 30, 30, { alt: "*", flipRtl: "FALSE" }))
1788+
.appendField("pausa");
1789+
this.appendValueInput("duration")
1790+
.setCheck("Number")
1791+
.setAlign(Blockly.ALIGN_CENTRE)
1792+
.appendField("durata");
1793+
this.appendDummyInput()
1794+
.appendField("secondi");
1795+
this.setInputsInline(true);
1796+
this.setPreviousStatement(true, null);
1797+
this.setNextStatement(true, null);
1798+
this.setColour(345);
1799+
this.setTooltip("");
1800+
this.setHelpUrl("");
1801+
}
1802+
};
1803+
1804+
17851805
Blockly.Python['coderbot_audio_listen'] = function(block) {
17861806
// Boolean values true and false.
17871807
var model = block.getFieldValue('MODEL');

0 commit comments

Comments
 (0)