Skip to content

Commit

Permalink
Update blocks.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Jan 28, 2025
1 parent c71dea9 commit 849e06e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion GameElements_20190131/blockly/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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_");
Expand All @@ -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);
Expand All @@ -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_");
Expand Down

0 comments on commit 849e06e

Please sign in to comment.