[patch] Departure boards + clock REWRITE r27912 (updated 2017-09-06)

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
hcoopz
Engineer
Engineer
Posts: 4
Joined: 29 Aug 2016 21:55
Location: NJ, USA

[patch] Departure boards + clock REWRITE r27912 (updated 2017-09-06)

Post by hcoopz »

I've written an alternative version of the departure boards and 24h clock patch. It solves a couple of outstanding issues in the original patch, changes the GUI slightly to my taste, and greatly simplifies the settings added. It does not break savegame compatibility. Please let me know what you think!

Settings
  • Interface > Show arrival and departure station lists using a larger font
    When enabled, the list of stations called at will be shown using the game's normal font, instead of a smaller font.
  • Interface > Use 24-hour clock for timetables
    When enabled, a 24-hour clock will be shown instead of dates in vehicle timetable windows, alongside the date in the status bar, and instead of dates in departures and arrivals windows.
Changes from the original patch
  • Departures and arrivals are now shown in separate windows
  • Vehicle, group, and company name can now be toggled using buttons in the departures and arrivals windows
  • Vehicle icons are always shown in silver in departures and arrivals windows
  • The button to toggle road vehicles in departures and arrivals windows has been split into passenger and freight road vehicle buttons.
  • Vehicle, group, and company names are displayed in different colors to the scheduled date/time and destination, when enabled.
  • Departures and arrivals windows will automatically resize themselves if necessary whenever a station name is changed, the 24-hour clock setting is toggled, etc.
Issues fixed
  • Scrolling using a mouse wheel now works in departures and arrivals windows (spotted by Patagonicus)
  • When a vehicle's destination will be reached earlier by a later departure, it will not be shown as the destination of the earlier departure - the last station that cannot be reached earlier by a later departure will be shown instead. This now works for ring services (spotted by Koelschlenny)
  • The company color of the station's owner is used in the title bar
Current limitations
  • 1 minute is fixed in length at 1 day. This allows the patch to be savegame compatible.
  • Conditional orders are not handled. If a vehicle's timetable contains a conditional order, departures will not be calculated beyond it.
  • The furthest into the future that departures will be shown for is 1 years (or 6 hours and 6 minutes, if using the 24-hour clock.) This can be increased by editing days_of_departures in departures_gui.cpp.
Screenshots
Arrivals and departures windows with multiple transportation modes
Arrivals and departures windows with multiple transportation modes
departures+clock-1.png (159.97 KiB) Viewed 274 times
The list of stations called at will scroll when it does not fit
The list of stations called at will scroll when it does not fit
departures+clock-2.gif (138.34 KiB) Viewed 1857 times
Latest diff
departures+clock_r27912.diff
(116.82 KiB) Downloaded 97 times
Last edited by hcoopz on 07 Sep 2017 02:31, edited 6 times in total.
hcoopz
Engineer
Engineer
Posts: 4
Joined: 29 Aug 2016 21:55
Location: NJ, USA

Re: Departure boards + clock REWRITE r27656

Post by hcoopz »

Diff
departures+clock.diff
(116.51 KiB) Downloaded 89 times
I'm currently unable to produce Windows binaries, sorry!
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 47 guests