MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ShowTimetableWindow

Function ShowTimetableWindow

src/timetable_gui.cpp:856–861  ·  view source on GitHub ↗

* Show the timetable for a given vehicle. * @param v The vehicle to show the timetable for. */

Source from the content-addressed store, hash-verified

854 * @param v The vehicle to show the timetable for.
855 */
856void ShowTimetableWindow(const Vehicle *v)
857{
858 CloseWindowById(WC_VEHICLE_DETAILS, v->index, false);
859 CloseWindowById(WC_VEHICLE_ORDERS, v->index, false);
860 AllocateWindowDescFront<TimetableWindow>(_timetable_desc, v->index);
861}

Callers 2

OnClickMethod · 0.85
OnClickMethod · 0.85

Calls 1

CloseWindowByIdFunction · 0.85

Tested by

no test coverage detected