Skip to content

Commit 34c0dc3

Browse files
committed
1 parent f5b2085 commit 34c0dc3

File tree

23 files changed

+1181
-179
lines changed

23 files changed

+1181
-179
lines changed

Source/ORTS.Common/Input/UserCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public enum UserCommand
4747
[GetString("Display Next Station Window")] DisplayNextStationWindow,
4848
[GetString("Display Compass Window")] DisplayCompassWindow,
4949
[GetString("Display Train List Window")] DisplayTrainListWindow,
50+
[GetString("Display EOT List Window")] DisplayEOTListWindow,
5051

5152
[GetString("Debug Speed Up")] DebugSpeedUp,
5253
[GetString("Debug Speed Down")] DebugSpeedDown,
@@ -144,6 +145,7 @@ public enum UserCommand
144145
[GetString("Control Brake Hose Disconnect")] ControlBrakeHoseDisconnect,
145146
[GetString("Control Alerter")] ControlAlerter,
146147
[GetString("Control Emergency Push Button")] ControlEmergencyPushButton,
148+
[GetString("Control EOT Emergency Brake")] ControlEOTEmergencyBrake,
147149
[GetString("Control Sander")] ControlSander,
148150
[GetString("Control Sander Toggle")] ControlSanderToggle,
149151
[GetString("Control Wiper")] ControlWiper,

Source/ORTS.Settings/InputSettings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ static void InitializeCommands(UserCommandInput[] Commands)
375375
Commands[(int)UserCommand.ControlDynamicBrakeIncrease] = new UserCommandKeyInput(0x34);
376376
Commands[(int)UserCommand.ControlElectricTrainSupply] = new UserCommandKeyInput(0x30, KeyModifiers.Alt);
377377
Commands[(int)UserCommand.ControlEmergencyPushButton] = new UserCommandKeyInput(0x0E);
378+
Commands[(int)UserCommand.ControlEOTEmergencyBrake] = new UserCommandKeyInput(0x0E, KeyModifiers.Control);
378379
Commands[(int)UserCommand.ControlEngineBrakeDecrease] = new UserCommandKeyInput(0x1A);
379380
Commands[(int)UserCommand.ControlEngineBrakeIncrease] = new UserCommandKeyInput(0x1B);
380381
Commands[(int)UserCommand.ControlBrakemanBrakeDecrease] = new UserCommandKeyInput(0x1A, KeyModifiers.Alt);
@@ -486,6 +487,7 @@ static void InitializeCommands(UserCommandInput[] Commands)
486487
Commands[(int)UserCommand.DisplayTrackMonitorWindow] = new UserCommandModifiableKeyInput(0x3E, Commands[(int)UserCommand.DisplayNextWindowTab]);
487488
Commands[(int)UserCommand.DisplayTrainOperationsWindow] = new UserCommandKeyInput(0x43);
488489
Commands[(int)UserCommand.DisplayTrainDpuWindow] = new UserCommandKeyInput(0x43, KeyModifiers.Shift);
490+
Commands[(int)UserCommand.DisplayEOTListWindow] = new UserCommandKeyInput(0x43, KeyModifiers.Control);
489491

490492
Commands[(int)UserCommand.GameAutopilotMode] = new UserCommandKeyInput(0x1E, KeyModifiers.Alt);
491493
Commands[(int)UserCommand.GameChangeCab] = new UserCommandKeyInput(0x12, KeyModifiers.Control);

Source/Orts.Formats.Msts/ActivityFile.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,7 @@ public TrainCfg(STFReader stf) {
13001300
new STFReader.TokenProcessor("durability", ()=>{ Durability = stf.ReadFloatBlock(STFReader.UNITS.None, null); }),
13011301
new STFReader.TokenProcessor("wagon", ()=>{ WagonList.Add(new Wagon(stf)); }),
13021302
new STFReader.TokenProcessor("engine", ()=>{ WagonList.Add(new Wagon(stf)); }),
1303+
new STFReader.TokenProcessor("ortseot", ()=>{ WagonList.Add(new Wagon(stf)); }),
13031304
new STFReader.TokenProcessor("ortstraincontrolsystemparameters", () => TcsParametersFileName = stf.ReadStringBlock(null)),
13041305
});
13051306
}
@@ -1310,6 +1311,7 @@ public class Wagon {
13101311
public string Name;
13111312
public int UiD;
13121313
public bool IsEngine;
1314+
public bool IsEOT;
13131315
public bool Flip;
13141316

13151317
public Wagon(STFReader stf) {
@@ -1319,6 +1321,7 @@ public Wagon(STFReader stf) {
13191321
new STFReader.TokenProcessor("flip", ()=>{ stf.MustMatch("("); stf.MustMatch(")"); Flip = true; }),
13201322
new STFReader.TokenProcessor("enginedata", ()=>{ stf.MustMatch("("); Name = stf.ReadString(); Folder = stf.ReadString(); stf.MustMatch(")"); IsEngine = true; }),
13211323
new STFReader.TokenProcessor("wagondata", ()=>{ stf.MustMatch("("); Name = stf.ReadString(); Folder = stf.ReadString(); stf.MustMatch(")"); }),
1324+
new STFReader.TokenProcessor("eotdata", ()=>{ stf.MustMatch("("); Name = stf.ReadString(); Folder = stf.ReadString(); stf.MustMatch(")"); IsEOT = true; }),
13221325
});
13231326
}
13241327

Source/Orts.Formats.Msts/CabViewFile.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,13 @@ public enum CABViewControlTypes
206206
ORTS_GENERIC_ITEM2,
207207
ORTS_SCREEN_SELECT,
208208
ORTS_STATIC_DISPLAY,
209+
ORTS_EOT_BRAKE_PIPE,
210+
ORTS_EOT_STATE_DISPLAY,
211+
ORTS_EOT_ID,
212+
ORTS_EOT_COMM_TEST,
213+
ORTS_EOT_DISARM,
214+
ORTS_EOT_ARM_TWO_WAY,
215+
ORTS_EOT_EMERGENCY_BRAKE,
209216

210217
// TCS Controls
211218
ORTS_TCS1,

0 commit comments

Comments
 (0)