16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-09-01 08:09:19 +02:00

Simplify lamp logic, add new lights for 810 vehicles (#148)

Simplified lamp logic by reducing unnecessary brackets, `if` statements, ternary operators and boolean comparisons.
Added new lamps:
- `i-gear1` - 1st gear in the gearbox is active
- `i-gear2` - 2nd gear in the gearbox is active
- `i-hydrolockup` - The gearbox is locking the engine and wheels together

Additionally, fixed motor overload and differential relay lights not turning off when the battery is turned off.
This commit is contained in:
jakubg1
2026-07-21 22:44:04 +02:00
committed by GitHub
parent c8e5360d87
commit 1929119db6
2 changed files with 47 additions and 64 deletions

View File

@@ -759,6 +759,9 @@ public: // reszta może by?publiczna
TButton btLampkaBocznik2;
TButton btLampkaBocznik3;
TButton btLampkaBocznik4;
TButton btLampkaGear1;
TButton btLampkaGear2;
TButton btLampkaHydroLockup;
TButton btLampkaRadiotelefon; // TODO: implement
TButton btLampkaHamienie;
TButton btLampkaBrakingOff;