Skip to content

Commit 6b3b5a5

Browse files
committed
Changed Auto, Teleop, and Test away from being localized
1 parent da233a3 commit 6b3b5a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/blocks/mrc_opmode_details.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ const OPMODE_DETAILS = {
6262
this.setStyle(MRC_STYLE_CLASS_BLOCKS);
6363
this.appendDummyInput()
6464
.appendField(Blockly.Msg.TYPE)
65-
.appendField(createFieldDropdown([Blockly.Msg.AUTO, Blockly.Msg.TELEOP, Blockly.Msg.TEST]), 'TYPE')
65+
// These aren't Blockly.Msg because they need to match the Python generator's expected values.
66+
.appendField(createFieldDropdown(["Auto", "Teleop", "Test"]), 'TYPE')
6667
.appendField(' ')
6768
.appendField(Blockly.Msg.ENABLED)
6869
.appendField(new Blockly.FieldCheckbox(true), 'ENABLED');

0 commit comments

Comments
 (0)