Skip to content

Commit 644b5e9

Browse files
committed
edit ui content
1 parent 5d07aee commit 644b5e9

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

blockly/blocks.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
Blockly.Blocks['lora_new'] = {
33
init: function() {
44
this.appendDummyInput()
5-
.appendField("LORA , Reset Pin")
5+
.appendField("LORA , Reset")
66
.appendField(new Blockly.FieldDropdown([["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"], ["4", "4"], ["5", "5"], ["6", "6"], ["7", "7"], ["8", "8"], ["9", "9"], ["15", "15"]]), "resetPin")
7-
.appendField(" , Address:")
7+
.appendField(" Address")
88
.appendField(new Blockly.FieldDropdown([["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"], ["4", "4"], ["5", "5"], ["6", "6"], ["7", "7"], ["8", "8"], ["9", "9"], ["15", "15"]]), "address");
99
this.setOutput(true, null);
1010
this.setColour(230);
@@ -36,10 +36,12 @@ Blockly.Blocks['lora_send_ack'] = {
3636
.appendField(Blockly.Msg.WEBDUINO_LORA_SEND_STRING);
3737
this.appendStatementInput("send_ok")
3838
.setCheck(null)
39-
.appendField(Blockly.Msg.WEBDUINO_LORA_SUCCESS_CALLBACK);
39+
.appendField(Blockly.Msg.WEBDUINO_LORA_SUCCESS_CALLBACK)
40+
.setAlign(Blockly.ALIGN_RIGHT);
4041
this.appendStatementInput("send_failure")
4142
.setCheck(null)
42-
.appendField(Blockly.Msg.WEBDUINO_LORA_FAIL_CALLBACK);
43+
.appendField(Blockly.Msg.WEBDUINO_LORA_FAIL_CALLBACK)
44+
.setAlign(Blockly.ALIGN_RIGHT);
4345
this.setPreviousStatement(true, null);
4446
this.setNextStatement(true, null);
4547
this.setColour(65);
@@ -70,7 +72,7 @@ Blockly.Blocks['lora_recv_data'] = {
7072
.appendField(new Blockly.FieldVariable("lora"), "lora")
7173
.appendField(Blockly.Msg.WEBDUINO_LORA_RECEIVED_STRING);
7274
this.setOutput(true, null);
73-
this.setColour(65);
75+
this.setColour(35);
7476
this.setTooltip('');
7577
this.setHelpUrl('http://webduino.io/');
7678
}

blockly/msg/blocks/en.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// LoRa
22
Blockly.Msg.WEBDUINO_LORA_SEND_STRING = "Send string";
3-
Blockly.Msg.WEBDUINO_LORA_SUCCESS_CALLBACK = "Do ... after success";
4-
Blockly.Msg.WEBDUINO_LORA_FAIL_CALLBACK = "Do ... after failure";
5-
Blockly.Msg.WEBDUINO_LORA_RECEIVE_CALLBACK = "Do ... after receiving string";
3+
Blockly.Msg.WEBDUINO_LORA_SUCCESS_CALLBACK = "After successed, do";
4+
Blockly.Msg.WEBDUINO_LORA_FAIL_CALLBACK = "After failed, do";
5+
Blockly.Msg.WEBDUINO_LORA_RECEIVE_CALLBACK = "After receiving string, do";
66
Blockly.Msg.WEBDUINO_LORA_RECEIVED_STRING = "Redeived string";

blockly/msg/en.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
MSG.catLORA = "LORA_1276";
1+
MSG.catLORA = "LORA";

blockly/msg/zh-hans.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
MSG.catLORA = "LORA_1276";
1+
MSG.catLORA = "LORA";

blockly/msg/zh-hant.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
MSG.catLORA = "LORA_1276";
1+
MSG.catLORA = "LORA";

0 commit comments

Comments
 (0)