@@ -771,7 +771,7 @@ void AddSeparator() => AddLabel(new ListLabel
771771 {
772772 FirstCol = Viewer . Catalog . GetString ( locomotive is MSTSSteamLocomotive ? "Regulator" : "Throttle" ) ,
773773 LastCol = $ "{ Round ( locomotive . ThrottlePercent ) } %" +
774- ( locomotive is MSTSDieselLocomotive && train . DPMode == 1 ? $ "( { Round ( train . DPThrottlePercent ) } %) " : "" ) ,
774+ ( locomotive is MSTSDieselLocomotive && train . DPMode == 1 ? $ " | { Round ( train . DPThrottlePercent ) } %" : "" ) ,
775775 KeyPressed = throttleKey ,
776776 SymbolCol = "" //throttleKey,
777777 } ) ;
@@ -1048,23 +1048,27 @@ void AddSeparator() => AddLabel(new ListLabel
10481048
10491049 if ( dynamicBrakeStatus != null && locomotive . IsLeadLocomotive ( ) )
10501050 {
1051- if ( locomotive . DynamicBrakePercent >= 0 )
1051+ var dynBrakeString = "" ;
1052+ var dynBrakeColor = "" ;
1053+
1054+ if ( locomotive . DynamicBrakePercent < 0 )
1055+ dynBrakeString = Viewer . Catalog . GetString ( "Off" ) ;
1056+ else if ( ! locomotive . DynamicBrake )
10521057 {
1053- AddLabel ( new ListLabel
1054- {
1055- FirstCol = Viewer . Catalog . GetString ( "Dynamic brake" ) ,
1056- LastCol = locomotive . DynamicBrake ? dynamicBrakeStatus : Viewer . Catalog . GetString ( "Setup" ) + ColorCode [ Color . Cyan ] +
1057- ( locomotive is MSTSDieselLocomotive && train . DPMode == - 1 ? string . Format ( "({0:F0}%)" , train . DPDynamicBrakePercent ) : string . Empty ) ,
1058- } ) ;
1058+ dynBrakeString = Viewer . Catalog . GetString ( "Setup" ) ;
1059+ dynBrakeColor = ColorCode [ Color . Cyan ] ;
10591060 }
10601061 else
1062+ dynBrakeString = dynamicBrakeStatus ;
1063+
1064+ if ( locomotive is MSTSDieselLocomotive && train . DPMode == - 1 )
1065+ dynBrakeString += string . Format ( " | {0:F0}%" , train . DPDynamicBrakePercent ) ;
1066+
1067+ AddLabel ( new ListLabel
10611068 {
1062- AddLabel ( new ListLabel
1063- {
1064- FirstCol = Viewer . Catalog . GetString ( "Dynamic brake" ) ,
1065- LastCol = Viewer . Catalog . GetString ( "Off" ) + ( locomotive is MSTSDieselLocomotive && train . DPMode == - 1 ? string . Format ( "({0:F0}%)" , train . DPDynamicBrakePercent ) : string . Empty ) ,
1066- } ) ;
1067- }
1069+ FirstCol = Viewer . Catalog . GetString ( "Dynamic brake" ) ,
1070+ LastCol = dynBrakeString + dynBrakeColor ,
1071+ } ) ;
10681072 }
10691073
10701074 AddSeparator ( ) ;
0 commit comments