Implement gear light tachometer
Hello! This is intended to emulate the gear lights on the back of the car. I think this is a little easier to parse than the gear number text. In the future it might be worth copying how car status (turbo, cruise control, etc) change the gear lights.
Trackmania_2025-11-13_16-00-33 (online-video-cutter.com).webm
It's been brought to my attention that the existing tach types are relied on as a visual indicator for when a gear shift is about to happen. Something like this would include that functionality.
if (rpm <= Setting_Gearbox_Downshift && gear >= 2) {
color = Setting_Gearbox_LowRPMColor;
} else if (rpm >= Setting_Gearbox_Upshift && gear <= 4) {
color = Setting_Gearbox_HighRPMColor;
}
If we include this change we might want to use Setting_Gearbox_MidRPMColor instead of a new separate Setting_Gearbox_Lights_Color. We would probably also want a setting to enable/disable this, as RPM doesn't seem like a super accurate way to predict gear shifts. There doesn't seem to be a downshift threshold value that both avoids flickering the downshift color on gearing up into 2, and also shows the downshift color at all when gearing down into 4. I adjusted the thresholds here to 6400/9700:
Thanks for the PR! I can't playback the videos on my Mac for some reason, but I will take a look at this soon.
Yw! I replaced the mp4s with webms, maybe that helps?