Skip to content

Commit 2c9ef59

Browse files
committed
Use low/high RPM color for gears about to shift
1 parent aa0d950 commit 2c9ef59

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Source/Things/Gearbox.as

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,12 @@ class DashboardGearbox : DashboardThing
235235
color = GearColor(gear);
236236
}
237237

238+
if (rpm <= Setting_Gearbox_Downshift && gear >= 2) {
239+
color = Setting_Gearbox_LowRPMColor;
240+
} else if (rpm >= Setting_Gearbox_Upshift && gear <= MAX_GEAR - 1) {
241+
color = Setting_Gearbox_HighRPMColor;
242+
}
243+
238244
float lightPadding = 8.0f;
239245
float spaceForPadding = lightPadding * float(MAX_GEAR + 1);
240246
float lightSize = (size.x - spaceForPadding) / float(MAX_GEAR);

0 commit comments

Comments
 (0)