t1a2l / TransportLinesManager

The TLM mod for Cities Skylines
Other
1 stars 3 forks source link

[FIX] Unscaled line chart: vehicle buttons now at correct positions for small n #6

Closed Vectorial1024 closed 11 months ago

Vectorial1024 commented 1 year ago

Fixes #1

Fix preview:

Screenshot 2023-08-13 014150

Additional details:

This fix targets n<8. As shown in #1, when n>=8, there are no problems already.

The logic for vehicle button scaling was not applied to the stop button scaling, so #1 happened.

Lines with few stops e.g. direct bus lines, long distance train lines, etc, should benefit from this fix.


Special thanks to t1a2l for quickly finding out the relevant code segment, so that I can quickly think of solutions to this bug.