Browse Source

modified: lars_blocks.js

pull/2/head
roboticafacil 1 year ago
parent
commit
f48b595b14
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lars_blocks.js

+ 2
- 2
lars_blocks.js View File

@@ -178,7 +178,7 @@ Blockly.Arduino['LARS_movement'] = function() {
178 178
 							try{this.setFieldValue(Facilino.locales.getKey('LANG_LARS_MOVEMENT_PERIOD'),'TEXT2');}catch (e) {}	
179 179
 						if (this._inp3_removed)
180 180
 						{
181
-							this.appendDummyInput('INP3').appendField(Facilino.locales.getKey('LANG_LARS_MOVEMENT_DIR'),'TEXT3').appendField(new Blockly.FieldDropdown([['Forward','0'],['Backward','1']]),'FIELD3').setAlign(Blockly.ALIGN_RIGHT);
181
+							this.appendDummyInput('INP3').appendField(Facilino.locales.getKey('LANG_LARS_MOVEMENT_DIR'),'TEXT3').appendField(new Blockly.FieldDropdown([[Facilino.locales.getKey('LANG_LARS_MOVEMENT_FORWARD'),'0'],[Facilino.locales.getKey('LANG_LARS_MOVEMENT_BACKWARD'),'1']]),'FIELD3').setAlign(Blockly.ALIGN_RIGHT);
182 182
 							this._inp3_removed=false;
183 183
 						}
184 184
 						else
@@ -201,7 +201,7 @@ Blockly.Arduino['LARS_movement'] = function() {
201 201
 							try{this.setFieldValue(Facilino.locales.getKey('LANG_LARS_MOVEMENT_PERIOD'),'TEXT2');}catch (e) {}
202 202
 						if (this._inp3_removed)
203 203
 						{
204
-							this.appendDummyInput('INP3').appendField(Facilino.locales.getKey('LANG_LARS_MOVEMENT_DIR'),'TEXT3').appendField(new Blockly.FieldDropdown([['Yes','true'],['No','false']]),'FIELD3').setAlign(Blockly.ALIGN_RIGHT);
204
+							this.appendDummyInput('INP3').appendField(Facilino.locales.getKey('LANG_LARS_MOVEMENT_DIR'),'TEXT3').appendField(new Blockly.FieldDropdown([[Facilino.locales.getKey('LANG_LARS_MOVEMENT_YES'),'true'],[Facilino.locales.getKey('LANG_LARS_MOVEMENT_NO'),'false']]),'FIELD3').setAlign(Blockly.ALIGN_RIGHT);
205 205
 							this._inp3_removed=false;
206 206
 						}
207 207
 						else

Loading…
Cancel
Save