OpenTTD-patches
OpenTTD-patches copied to clipboard
[Suggestion]: Allow displaying decimal day/minute in timetable
Inspired by 54221de, can we also have option to display day/minute in decimal in timetable window?
An alternative would be to display timetable times as HH:MM:SS
rather than the current HH:MM
, with the SS
portion taking up space that would be used to render the fractional part of MM
.
The ticks per minute setting chosen by the user isn't required to be neatly divisible by 10 (or 60). For days, 74 ticks is rather awkward. Truncating to 1 decimal place may be good enough. This does also add complexities with translations, in particular pluralising rules.
Giving this some thought, I think that allowing decimal second display only when ticket per minute is divisible by 10 would be a good compromise? Option name would be like "Display decimal minute in timetable windows (require tick per minute to be divisible by 10). For alternative HH:mm:SS display (and input), "require tick per minute to be divisible by 60". Otherwise, the current display is used.