You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch allows the user to view statistics on how many vehicles have visited a station.
It adds a button at the bottom of the station-view-window for opening the statistics-window.
The statistics-window shows either statistics for this and last month or average, minimum, maximum statistics and the number of counted months. This can be toggled by a button in the window.
Further statistics might be added in later patches, as well as statistics for waypoints or if needed depots.
This patch should be ready to be included in trunk.
Attached is a version that includes saving/loading of the statistics, starting with savegame-version 34.
Note that the savegame-version is not increased to 34 by this patch, but it will start save/load whenever the savegame-version is set to 34 or above.
Other than that there is only a small change to how the GUI is drawn.
Waiting for some comments now (especially from the developers). Thanks in advance.
New version incorporating changes suggested by Darkvater.
There's one thing I would liek comments on:
STSVehicleType currently uses the same order as the finances-window, not the same order as the vehicle-types in the rest of the code.
Should I leave it as is?
Or change the order in the enum making them display in a different order than in the finances-window?
Or change enum an make a conversion of the order for the displaying?