Skip to content

Commit e86d6b0

Browse files
committed
1 parent d394472 commit e86d6b0

File tree

77 files changed

+2255
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+2255
-13
lines changed

Source/ORTS.Common/Input/UserCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public enum UserCommand
4444
[GetString("Display Station Labels")] DisplayStationLabels,
4545
[GetString("Display Switch Window")] DisplaySwitchWindow,
4646
[GetString("Display Train Operations Window")] DisplayTrainOperationsWindow,
47+
[GetString("Display Train Car Operations Window")] DisplayTrainCarOperationsWindow,
4748
[GetString("Display Train Dpu Window")] DisplayTrainDpuWindow,
4849
[GetString("Display Next Station Window")] DisplayNextStationWindow,
4950
[GetString("Display Compass Window")] DisplayCompassWindow,

Source/ORTS.Settings/InputSettings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ static void InitializeCommands(UserCommandInput[] Commands)
504504
Commands[(int)UserCommand.DisplayHelpWindow] = new UserCommandModifiableKeyInput(0x3B, Commands[(int)UserCommand.DisplayNextWindowTab]);
505505
Commands[(int)UserCommand.DisplayHUD] = new UserCommandModifiableKeyInput(0x3F, KeyModifiers.Alt, Commands[(int)UserCommand.DisplayNextWindowTab]);
506506
Commands[(int)UserCommand.DisplayTrainDrivingWindow] = new UserCommandModifiableKeyInput(0x3F, Commands[(int)UserCommand.DisplayNextWindowTab]);
507+
Commands[(int)UserCommand.DisplayTrainCarOperationsWindow] = new UserCommandKeyInput(0x43, KeyModifiers.Control | KeyModifiers.Alt);
507508
Commands[(int)UserCommand.DisplayMultiPlayerWindow] = new UserCommandKeyInput(0x0A, KeyModifiers.Shift);
508509
Commands[(int)UserCommand.DisplayNextStationWindow] = new UserCommandKeyInput(0x44);
509510
Commands[(int)UserCommand.DisplayStationLabels] = new UserCommandModifiableKeyInput(0x40, Commands[(int)UserCommand.DisplayNextWindowTab]);

Source/ORTS.Settings/UserSettings.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,10 @@ public string DirectXFeatureLevel
408408
[Default(new[] { 50, 50 })]
409409
public int[] WindowPosition_TrainOperations { get; set; }
410410
[Default(new[] { 50, 50 })]
411+
public int[] WindowPosition_TrainCarOperations { get; set; }
412+
[Default(new[] { 50, 50 })]
413+
public int[] WindowPosition_TrainCarOperationsViewer { get; set; }
414+
[Default(new[] { 50, 50 })]
411415
public int[] WindowPosition_TrainDpu { get; set; }
412416
[Default(new[] { 50, 50 })]
413417
public int[] WindowPosition_CarOperations { get; set; }

Source/Orts.Simulation/Common/Commands.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,30 @@ public override string ToString()
888888
}
889889
}
890890

891+
[Serializable()]
892+
public sealed class WagonBrakeHoseRearConnectCommand : BooleanCommand
893+
{
894+
public static MSTSWagon Receiver { get; set; }
895+
896+
public WagonBrakeHoseRearConnectCommand(CommandLog log, MSTSWagon car, bool toState)
897+
: base(log, toState)
898+
{
899+
Receiver = car;
900+
Redo();
901+
}
902+
903+
public override void Redo()
904+
{
905+
Receiver.BrakeSystem.RearBrakeHoseConnected = ToState;
906+
// Report();
907+
}
908+
909+
public override string ToString()
910+
{
911+
return base.ToString() + " - " + (ToState ? "connect" : "disconnect");
912+
}
913+
}
914+
891915
[Serializable()]
892916
public sealed class ToggleAngleCockACommand : BooleanCommand
893917
{

Source/Orts.Simulation/Simulation/Physics/Train.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4071,6 +4071,7 @@ public void ConnectBrakeHoses()
40714071
for (var i = 0; i < Cars.Count; i++)
40724072
{
40734073
Cars[i].BrakeSystem.FrontBrakeHoseConnected = i > 0;
4074+
Cars[i].BrakeSystem.RearBrakeHoseConnected = i < Cars.Count - 1;
40744075
Cars[i].BrakeSystem.AngleCockAOpen = i > 0;
40754076
Cars[i].BrakeSystem.AngleCockBOpen = i < Cars.Count - 1;
40764077
// If end of train is not reached yet, then test the attached following car. If it is a manual braked car then set the brake cock on this car to closed.

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/Brakes/BrakeSystem.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ public abstract class BrakeSystem
4646
/// Front brake hoses connection status
4747
/// </summary>
4848
public bool FrontBrakeHoseConnected;
49+
50+
/// <summary>
51+
/// Rear brake hoses connection status
52+
/// </summary>
53+
public bool RearBrakeHoseConnected;
54+
4955
/// <summary>
5056
/// Front angle cock opened/closed status
5157
/// </summary>
6.48 KB
6.27 KB
8.17 KB
9.58 KB

0 commit comments

Comments
 (0)