OpenTTD-patches icon indicating copy to clipboard operation
OpenTTD-patches copied to clipboard

[Suggestion]: Allow displaying decimal day/minute in timetable

Open innocenat opened this issue 1 year ago • 3 comments

Inspired by 54221de, can we also have option to display day/minute in decimal in timetable window?

innocenat avatar May 13 '23 11:05 innocenat

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.

James103 avatar May 13 '23 11:05 James103

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.

JGRennison avatar May 13 '23 11:05 JGRennison

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.

innocenat avatar Jul 19 '23 08:07 innocenat