@@ -102,6 +102,7 @@ public class Viewer
102
102
public CarOperationsWindow CarOperationsWindow { get ; private set ; } // F9 sub-window for car operations
103
103
public TrainDpuWindow TrainDpuWindow { get ; private set ; } // Shift + F9 train distributed power window
104
104
public NextStationWindow NextStationWindow { get ; private set ; } // F10 window
105
+ public TrainForcesWindow TrainForcesWindow { get ; private set ; } // Alt-F7 window
105
106
public CompassWindow CompassWindow { get ; private set ; } // 0 window
106
107
public TracksDebugWindow TracksDebugWindow { get ; private set ; } // Control-Alt-F6
107
108
public SignallingDebugWindow SignallingDebugWindow { get ; private set ; } // Control-Alt-F11 window
@@ -510,6 +511,7 @@ internal void Initialize()
510
511
CarOperationsWindow = new CarOperationsWindow ( WindowManager ) ;
511
512
TrainDpuWindow = new TrainDpuWindow ( WindowManager ) ;
512
513
NextStationWindow = new NextStationWindow ( WindowManager ) ;
514
+ TrainForcesWindow = new TrainForcesWindow ( WindowManager ) ;
513
515
CompassWindow = new CompassWindow ( WindowManager ) ;
514
516
TracksDebugWindow = new TracksDebugWindow ( WindowManager ) ;
515
517
SignallingDebugWindow = new SignallingDebugWindow ( WindowManager ) ;
@@ -1057,6 +1059,7 @@ void HandleUserInput(ElapsedTime elapsedTime)
1057
1059
1058
1060
if ( UserInput . IsPressed ( UserCommand . DisplayNextStationWindow ) ) if ( UserInput . IsDown ( UserCommand . DisplayNextWindowTab ) ) NextStationWindow . TabAction ( ) ; else NextStationWindow . Visible = ! NextStationWindow . Visible ;
1059
1061
if ( UserInput . IsPressed ( UserCommand . DisplayCompassWindow ) ) if ( UserInput . IsDown ( UserCommand . DisplayNextWindowTab ) ) CompassWindow . TabAction ( ) ; else CompassWindow . Visible = ! CompassWindow . Visible ;
1062
+ if ( UserInput . IsPressed ( UserCommand . DisplayTrainForcesWindow ) ) if ( UserInput . IsDown ( UserCommand . DisplayNextWindowTab ) ) TrainForcesWindow . TabAction ( ) ; else TrainForcesWindow . Visible = ! TrainForcesWindow . Visible ;
1060
1063
if ( UserInput . IsPressed ( UserCommand . DebugTracks ) ) if ( UserInput . IsDown ( UserCommand . DisplayNextWindowTab ) ) TracksDebugWindow . TabAction ( ) ; else TracksDebugWindow . Visible = ! TracksDebugWindow . Visible ;
1061
1064
if ( UserInput . IsPressed ( UserCommand . DebugSignalling ) ) if ( UserInput . IsDown ( UserCommand . DisplayNextWindowTab ) ) SignallingDebugWindow . TabAction ( ) ; else SignallingDebugWindow . Visible = ! SignallingDebugWindow . Visible ;
1062
1065
if ( UserInput . IsPressed ( UserCommand . DisplayTrainListWindow ) ) TrainListWindow . Visible = ! TrainListWindow . Visible ;
0 commit comments