Skip to content

Commit 5d7e77e

Browse files
committed
Automatic merge of T1.5.1-1201-g5d239654f2 and 15 pull requests
- Pull request #799 at dfc715e: Consolidated wind simulation - Pull request #839 at d00beb9: First phase of https://blueprints.launchpad.net/or/+spec/additional-cruise-control-parameters - Pull request #885 at 8f473ce: feat: Add notifications to Menu - Pull request #891 at 9a1d6b2: Auto save - Pull request #892 at 1f5ba4c: Signal Function OPP_SIG_ID_TRAINPATH - Pull request #952 at 8347095: Investigation - Pulsing graphics - Pull request #953 at a519452: Fix Lights Crash on Corrupt Shapes - Pull request #954 at e715fa4: Multiple Track Profiles & Superelevation Improvements - Pull request #962 at 46d0472: Fix pantographs on unpowered cars - Pull request #972 at e90a2aa: On Map window color changed switch or signal is not changed - Pull request #980 at a7406de: Downloading route content (Github, zip) second part - Pull request #981 at ef9b55d: Multiple type trainset lightglows - Pull request #982 at efcf19c: WEB based Switch Panel enhancement: Alerter - Pull request #900 at c27f32d: DMI updates - Pull request #876 at f92de76: docs: add source for documents previously on website to source Documentation folder
17 parents 50c73fc + 5d23965 + dfc715e + d00beb9 + 8f473ce + 9a1d6b2 + 1f5ba4c + 8347095 + a519452 + e715fa4 + 46d0472 + e90a2aa + a7406de + ef9b55d + efcf19c + c27f32d + f92de76 commit 5d7e77e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Source/RunActivity/Viewer3D/WebServices/SwitchPanel/SwitchOnPanelStatus.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,18 @@ private static void getStatusControlEmergencyPushButton(ref SwitchOnPanelStatus
178178
}
179179
}
180180

181+
private static void getStatusControlAlerterPushButton(ref SwitchOnPanelStatus switchOnPanelStatus)
182+
{
183+
MSTSLocomotive locomotive = Viewer.PlayerLocomotive as MSTSLocomotive;
184+
185+
if (locomotive.AlerterSnd)
186+
{
187+
switchOnPanelStatus.Status = "Alerter";
188+
switchOnPanelStatus.Color = "red";
189+
switchOnPanelStatus.Blinking = true;
190+
}
191+
}
192+
181193
private static void getStatusGameControlMode(ref SwitchOnPanelStatus switchOnPanelStatus)
182194
{
183195
switch (Viewer.PlayerTrain.ControlMode)
@@ -505,6 +517,9 @@ public static void getStatus(UserCommand userCommand, ref SwitchOnPanelStatus sw
505517
case UserCommand.ControlEmergencyPushButton:
506518
getStatusControlEmergencyPushButton(ref switchOnPanelStatus);
507519
break;
520+
case UserCommand.ControlAlerter:
521+
getStatusControlAlerterPushButton(ref switchOnPanelStatus);
522+
break;
508523
case UserCommand.GameSwitchManualMode:
509524
getStatusGameControlMode(ref switchOnPanelStatus);
510525
break;

0 commit comments

Comments
 (0)