Skip to content

Commit

Permalink
SF23 profile
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasdahl1987 committed Oct 2, 2023
1 parent dd77223 commit fcc58ad
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions DahlLedEffect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public AnimationSW1(List<PatternSW1> aniPattern, List<Color> aniColor, int frame
List<Color> AMGGT3Colors = new List<Color> { Color.Green, Color.Green, Color.Green, Color.Green, Color.Orange, Color.Orange, Color.Orange, Color.Orange, Color.Red, Color.Red, Color.Red, Color.Red, Color.Red };
List<Color> MclarenF1Colors = new List<Color> { Color.OrangeRed, Color.OrangeRed, Color.OrangeRed, Color.OrangeRed, Color.OrangeRed, Color.OrangeRed, Color.OrangeRed, Color.DarkTurquoise, Color.DarkTurquoise, Color.DarkTurquoise, Color.DarkTurquoise, Color.DarkTurquoise };
List<Color> PorscheColors = new List<Color> { Color.Green, Color.Green, Color.Green, Color.Yellow, Color.Yellow, Color.Yellow, Color.Red, Color.Red, Color.Red, Color.Red, Color.Red, Color.Yellow, Color.Yellow, Color.Yellow, Color.Green, Color.Green, Color.Green };
List<Color> SF23Colors = new List<Color> { Color.Red, Color.Red, Color.Red, Color.Red, Color.Red, Color.Red, Color.Blue, Color.Blue, Color.Blue, Color.Blue, Color.Blue, Color.Red, Color.Red, Color.Red, Color.Red, Color.Red, Color.Red };
List<Color> IndyColors = new List<Color> { Color.Green, Color.Green, Color.Green, Color.Green, Color.Green, Color.Green, Color.Green, Color.Green, Color.Yellow, Color.Yellow, Color.Yellow, Color.Yellow, Color.Yellow, Color.Red, Color.Red, Color.Red, Color.Red };
List<Color> MX5 = new List<Color> { Color.Green, Color.Green, Color.Green, Color.Green, Color.Yellow, Color.Yellow, Color.Yellow, Color.Red, Color.Red, Color.Red, Color.Yellow, Color.Yellow, Color.Yellow, Color.Green, Color.Green, Color.Green, Color.Green };
List<Color> AllEmpty = new List<Color> { Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty, Color.Empty };
Expand Down Expand Up @@ -375,6 +376,10 @@ public override LedResult SetResultBase(LedsGameData data, LedResult result, Lis
double slipLR = Convert.ToDouble(pluginManager.GetPropertyValue("DahlDesign.SlipLR"));
double slipRR = Convert.ToDouble(pluginManager.GetPropertyValue("DahlDesign.SlipRR"));

bool SFactive = Convert.ToBoolean(pluginManager.GetPropertyValue("DahlDesign.SF23.OTActive"));
bool SFallowed = Convert.ToBoolean(pluginManager.GetPropertyValue("DahlDesign.SF23.OTAllowed"));
bool SFcool = Convert.ToBoolean(pluginManager.GetPropertyValue("DahlDesign.SF23.OTCooldownActive"));

if (slipLF == 100)
{
slipRF = 100;
Expand Down Expand Up @@ -1187,8 +1192,10 @@ bool isDecreasing(int delay, double value)
break;

case AnimationType.SF23:
fillerRevDDU(LeftToRight, IndyColors, FullRange);
fillerTriggerDDU(LeftToRight, AllRed, RPM > shiftLight, LeftToRight, true, 250);
fillerRevDDU(LeftToRight, SF23Colors, PorscheThresholds,0,0,false, Color.Red, 0, true, Color.Blue);
fillerTriggerDDU(spotLeft7, AllGreen, SFallowed && !SFactive && !SFcool, spotLeft7);
fillerTriggerDDU(TCandABS, AllBlue, SFactive, TCandABS);
fillerTriggerDDU(spotLeft7, AllRed, SFcool, spotLeft7, false, 500, 0, 0);
break;

}
Expand Down

0 comments on commit fcc58ad

Please sign in to comment.