From fcc58ad4ef2f0873282ed8bbe54d9ef9daf18cba Mon Sep 17 00:00:00 2001 From: Andreas Dahl <40788634+andreasdahl1987@users.noreply.github.com> Date: Tue, 3 Oct 2023 00:03:06 +0200 Subject: [PATCH] SF23 profile --- DahlLedEffect.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/DahlLedEffect.cs b/DahlLedEffect.cs index 6015a2e..1b5f2d0 100644 --- a/DahlLedEffect.cs +++ b/DahlLedEffect.cs @@ -121,6 +121,7 @@ public AnimationSW1(List aniPattern, List aniColor, int frame List AMGGT3Colors = new List { 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 MclarenF1Colors = new List { 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 PorscheColors = new List { 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 SF23Colors = new List { 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 IndyColors = new List { 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 MX5 = new List { 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 AllEmpty = new List { 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 }; @@ -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; @@ -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; }