From 849e06ee2f64576a196b5dedf186413d25ab2c65 Mon Sep 17 00:00:00 2001 From: fustyles <34397289+fustyles@users.noreply.github.com> Date: Tue, 28 Jan 2025 21:48:09 +0800 Subject: [PATCH] Update blocks.js --- GameElements_20190131/blockly/blocks.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/GameElements_20190131/blockly/blocks.js b/GameElements_20190131/blockly/blocks.js index 3e26540f49..bcdcd315f7 100644 --- a/GameElements_20190131/blockly/blocks.js +++ b/GameElements_20190131/blockly/blocks.js @@ -2716,6 +2716,8 @@ Blockly.Blocks['document_timer_novar'] = { .setAlign(Blockly.ALIGN_RIGHT) .setCheck("Number") .appendField(Blockly.Msg.DOCUMENT_TIMER); + this.appendDummyInput() + .appendField(Blockly.Msg.DOCUMENT_TIMER_REPEAT); this.setInputsInline(true); this.appendStatementInput("do_"); this.setPreviousStatement(true); @@ -2729,6 +2731,8 @@ Blockly.Blocks['document_timer_once_novar'] = { this.appendValueInput("intervals_") .setAlign(Blockly.ALIGN_RIGHT) .setCheck("Number") + .appendField(Blockly.Msg.DOCUMENT_TIMER); + this.appendDummyInput() .appendField(Blockly.Msg.DOCUMENT_TIMER_ONCE); this.setInputsInline(true); this.appendStatementInput("do_"); @@ -2744,7 +2748,9 @@ Blockly.Blocks['document_timer'] = { .setAlign(Blockly.ALIGN_RIGHT) .setCheck("Number") .appendField(new Blockly.FieldVariable('myTimer'), 'myTimer_') - .appendField(Blockly.Msg.DOCUMENT_TIMER); + .appendField(Blockly.Msg.DOCUMENT_TIMER); + this.appendDummyInput() + .appendField(Blockly.Msg.DOCUMENT_TIMER_REPEAT); this.setInputsInline(true); this.appendStatementInput("do_"); this.setPreviousStatement(true); @@ -2759,6 +2765,8 @@ Blockly.Blocks['document_timer_once'] = { .setAlign(Blockly.ALIGN_RIGHT) .setCheck("Number") .appendField(new Blockly.FieldVariable('myTimerOnce'), 'myTimerOnce_') + .appendField(Blockly.Msg.DOCUMENT_TIMER); + this.appendDummyInput() .appendField(Blockly.Msg.DOCUMENT_TIMER_ONCE); this.setInputsInline(true); this.appendStatementInput("do_");