|
2 | 2 | Blockly.Blocks['lora_new'] = {
|
3 | 3 | init: function() {
|
4 | 4 | this.appendDummyInput()
|
5 |
| - .appendField("LORA , Reset Pin") |
| 5 | + .appendField("LORA , Reset") |
6 | 6 | .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") |
8 | 8 | .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");
|
9 | 9 | this.setOutput(true, null);
|
10 | 10 | this.setColour(230);
|
@@ -36,10 +36,12 @@ Blockly.Blocks['lora_send_ack'] = {
|
36 | 36 | .appendField(Blockly.Msg.WEBDUINO_LORA_SEND_STRING);
|
37 | 37 | this.appendStatementInput("send_ok")
|
38 | 38 | .setCheck(null)
|
39 |
| - .appendField(Blockly.Msg.WEBDUINO_LORA_SUCCESS_CALLBACK); |
| 39 | + .appendField(Blockly.Msg.WEBDUINO_LORA_SUCCESS_CALLBACK) |
| 40 | + .setAlign(Blockly.ALIGN_RIGHT); |
40 | 41 | this.appendStatementInput("send_failure")
|
41 | 42 | .setCheck(null)
|
42 |
| - .appendField(Blockly.Msg.WEBDUINO_LORA_FAIL_CALLBACK); |
| 43 | + .appendField(Blockly.Msg.WEBDUINO_LORA_FAIL_CALLBACK) |
| 44 | + .setAlign(Blockly.ALIGN_RIGHT); |
43 | 45 | this.setPreviousStatement(true, null);
|
44 | 46 | this.setNextStatement(true, null);
|
45 | 47 | this.setColour(65);
|
@@ -70,7 +72,7 @@ Blockly.Blocks['lora_recv_data'] = {
|
70 | 72 | .appendField(new Blockly.FieldVariable("lora"), "lora")
|
71 | 73 | .appendField(Blockly.Msg.WEBDUINO_LORA_RECEIVED_STRING);
|
72 | 74 | this.setOutput(true, null);
|
73 |
| - this.setColour(65); |
| 75 | + this.setColour(35); |
74 | 76 | this.setTooltip('');
|
75 | 77 | this.setHelpUrl('http://webduino.io/');
|
76 | 78 | }
|
|
0 commit comments