diff --git a/Source/RunActivity/Viewer3D/WebServices/SwitchPanel/SwitchOnPanelStatus.cs b/Source/RunActivity/Viewer3D/WebServices/SwitchPanel/SwitchOnPanelStatus.cs index 07e9c953f..d4886c342 100644 --- a/Source/RunActivity/Viewer3D/WebServices/SwitchPanel/SwitchOnPanelStatus.cs +++ b/Source/RunActivity/Viewer3D/WebServices/SwitchPanel/SwitchOnPanelStatus.cs @@ -178,6 +178,18 @@ private static void getStatusControlEmergencyPushButton(ref SwitchOnPanelStatus } } + private static void getStatusControlAlerterPushButton(ref SwitchOnPanelStatus switchOnPanelStatus) + { + MSTSLocomotive locomotive = Viewer.PlayerLocomotive as MSTSLocomotive; + + if (locomotive.AlerterSnd) + { + switchOnPanelStatus.Status = "Alerter"; + switchOnPanelStatus.Color = "red"; + switchOnPanelStatus.Blinking = true; + } + } + private static void getStatusGameControlMode(ref SwitchOnPanelStatus switchOnPanelStatus) { switch (Viewer.PlayerTrain.ControlMode) @@ -505,6 +517,9 @@ public static void getStatus(UserCommand userCommand, ref SwitchOnPanelStatus sw case UserCommand.ControlEmergencyPushButton: getStatusControlEmergencyPushButton(ref switchOnPanelStatus); break; + case UserCommand.ControlAlerter: + getStatusControlAlerterPushButton(ref switchOnPanelStatus); + break; case UserCommand.GameSwitchManualMode: getStatusGameControlMode(ref switchOnPanelStatus); break;