Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Jan 28, 2025
1 parent 542af2d commit 4f05c0e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
12 changes: 10 additions & 2 deletions SpBlocklyJS/GameElements_20190131/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -2544,6 +2544,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 @@ -2557,7 +2559,9 @@ Blockly.Blocks['document_timer_once_novar'] = {
this.appendValueInput("intervals_")
.setAlign(Blockly.ALIGN_RIGHT)
.setCheck("Number")
.appendField(Blockly.Msg.DOCUMENT_TIMER_ONCE);
.appendField(Blockly.Msg.DOCUMENT_TIMER);
this.appendDummyInput()
.appendField(Blockly.Msg.DOCUMENT_TIMER_ONCE);
this.setInputsInline(true);
this.appendStatementInput("do_");
this.setPreviousStatement(true);
Expand All @@ -2572,7 +2576,9 @@ Blockly.Blocks['document_timer'] = {
.setAlign(Blockly.ALIGN_RIGHT)
.setCheck("Number")
.appendField(new Blockly.FieldVariable(), '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 @@ -2587,6 +2593,8 @@ Blockly.Blocks['document_timer_once'] = {
.setAlign(Blockly.ALIGN_RIGHT)
.setCheck("Number")
.appendField(new Blockly.FieldVariable(), 'myTimerOnce_')
.appendField(Blockly.Msg.DOCUMENT_TIMER);
this.appendDummyInput()
.appendField(Blockly.Msg.DOCUMENT_TIMER_ONCE);
this.setInputsInline(true);
this.appendStatementInput("do_");
Expand Down
3 changes: 2 additions & 1 deletion SpBlocklyJS/GameElements_20190131/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ Blockly.Msg["ONCLICK_LISTENER"] = "Start Detecting Clicks (Table, Canvas, Image)
Blockly.Msg["ONCLICK"] = "Get Click Status";
Blockly.Msg["MOUSE_COORDINATE_GET"] = "Get Mouse Coordinates";
Blockly.Msg["DOCUMENT_TIMER"] = "Timer Interval (ms)";
Blockly.Msg["DOCUMENT_TIMER_ONCE"] = "Timer Execute Once After Interval (ms)";
Blockly.Msg["DOCUMENT_TIMER_REPEAT"] = "then execute repeatedly";
Blockly.Msg["DOCUMENT_TIMER_ONCE"] = "then execute Once";
Blockly.Msg["DOCUMENT_TIMER_STOP"] = "Stop Timer";
Blockly.Msg["PROPERTY"] = "Property";
Blockly.Msg["TEXT_TO_NUMBER"] = "Text to Number";
Expand Down
3 changes: 2 additions & 1 deletion SpBlocklyJS/GameElements_20190131/zh-hans.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ Blockly.Msg.ONCLICK_LISTENER = "开始侦测大量点击状态(表格、画布
Blockly.Msg.ONCLICK = "取得点击状态";
Blockly.Msg.MOUSE_COORDINATE_GET = "取得滑鼠座标";
Blockly.Msg.DOCUMENT_TIMER = "计时器 间隔时间(ms)";
Blockly.Msg.DOCUMENT_TIMER_ONCE = "计时器 间隔时间(ms)后执行一次";
Blockly.Msg.DOCUMENT_TIMER_REPEAT = "后重复执行";
Blockly.Msg.DOCUMENT_TIMER_ONCE = "后执行一次";
Blockly.Msg.DOCUMENT_TIMER_STOP = "停止计时器";
Blockly.Msg.PROPERTY = "属性";
Blockly.Msg.TEXT_TO_NUMBER = "文字转数字";
Expand Down
3 changes: 2 additions & 1 deletion SpBlocklyJS/GameElements_20190131/zh-hant.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ Blockly.Msg["ONCLICK_LISTENER"] = "開始偵測大量點擊狀態(表格、畫
Blockly.Msg["ONCLICK"] = "取得點擊狀態";
Blockly.Msg["MOUSE_COORDINATE_GET"] = "取得滑鼠座標";
Blockly.Msg["DOCUMENT_TIMER"] = "計時器 間隔時間(ms)";
Blockly.Msg["DOCUMENT_TIMER_ONCE"] = "計時器 間隔時間(ms)後執行一次";
Blockly.Msg["DOCUMENT_TIMER_REPEAT"] = "後重複執行";
Blockly.Msg["DOCUMENT_TIMER_ONCE"] = "後執行一次";
Blockly.Msg["DOCUMENT_TIMER_STOP"] = "停止計時器";
Blockly.Msg["PROPERTY"] = "屬性";
Blockly.Msg["TEXT_TO_NUMBER"] = "文字轉數字";
Expand Down

0 comments on commit 4f05c0e

Please sign in to comment.