tm-dashboard icon indicating copy to clipboard operation
tm-dashboard copied to clipboard

Implement gear light tachometer

Open zphixon opened this issue 3 months ago • 3 comments

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

zphixon avatar Nov 13 '25 21:11 zphixon

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:

Trackmania_2025-11-15_12-41-55.webm

zphixon avatar Nov 15 '25 17:11 zphixon

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.

codecat avatar Nov 16 '25 19:11 codecat

Yw! I replaced the mp4s with webms, maybe that helps?

zphixon avatar Nov 18 '25 00:11 zphixon