@@ -75,6 +75,7 @@ public class TrainCarOperationsViewerWindow : Window
7575 internal static Texture2D RearAngleCockPartial ;
7676 internal static Texture2D ResetBrakesOff ;
7777 internal static Texture2D ResetBrakesOn ;
78+ internal static Texture2D ResetBrakesWarning ;
7879
7980 public List < bool > AngleCockAPartiallyOpened = new List < bool > ( ) ;
8081 public List < bool > AngleCockBPartiallyOpened = new List < bool > ( ) ;
@@ -85,6 +86,8 @@ public class TrainCarOperationsViewerWindow : Window
8586 public int RowsCount ;
8687 public int SpacerRowCount ;
8788 public int SymbolsRowCount ;
89+ public bool BrakeHoseCarCoupling ;
90+
8891 const int SymbolWidth = 32 ;
8992 public static bool FontChanged ;
9093 public static bool FontToBold ;
@@ -234,6 +237,7 @@ protected internal override void Initialize()
234237
235238 Rectangle ResetBrakesOffRect = new Rectangle ( 64 , 256 , 32 , 32 ) ;
236239 Rectangle ResetBrakesOnRect = new Rectangle ( 96 , 256 , 32 , 32 ) ;
240+ Rectangle ResetBrakesWarningRect = new Rectangle ( 96 , 32 , 32 , 32 ) ;
237241
238242 var GraphicsDeviceRender = Owner . Viewer . RenderProcess . GraphicsDevice ;
239243 var TrainOperationsPath = System . IO . Path . Combine ( Owner . Viewer . ContentPath , "TrainOperations\\ TrainOperationsMap32.png" ) ;
@@ -283,6 +287,7 @@ protected internal override void Initialize()
283287
284288 ResetBrakesOff = SharedTextureManager . Get ( GraphicsDeviceRender , TrainOperationsPath , ResetBrakesOffRect ) ;
285289 ResetBrakesOn = SharedTextureManager . Get ( GraphicsDeviceRender , TrainOperationsPath , ResetBrakesOnRect ) ;
290+ ResetBrakesWarning = SharedTextureManager . Get ( GraphicsDeviceRender , TrainOperationsPath , ResetBrakesWarningRect ) ;
286291
287292 PowerOn = SharedTextureManager . Get ( GraphicsDeviceRender , TrainOperationsPath , PowerOnRect ) ;
288293 PowerOff = SharedTextureManager . Get ( GraphicsDeviceRender , TrainOperationsPath , PowerOffRect ) ;
@@ -661,7 +666,7 @@ public buttonInitializeBrakes(int x, int y, int size, Viewer viewer, int warning
661666 Viewer = viewer ;
662667 TrainCarViewer = Viewer . TrainCarOperationsViewerWindow ;
663668 WarningCars = warningCars ;
664- Texture = WarningCars > 2 ? ResetBrakesOn : ResetBrakesOff ;
669+ Texture = WarningCars > 2 ? ResetBrakesOn : WarningCars == 0 ? ResetBrakesOff : ResetBrakesWarning ;
665670 Source = new Rectangle ( 0 , 0 , size , size ) ;
666671 Click += new Action < Control , Point > ( buttonInitializeBrakes_Click ) ;
667672 }
0 commit comments