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

Function MenuClickShowTrains

src/toolbar_gui.cpp:790–794  ·  view source on GitHub ↗

* Handle click on the entry in the Train menu. * * @param index CompanyID to show train list for. * @return #CBF_NONE */

Source from the content-addressed store, hash-verified

788 * @return #CBF_NONE
789 */
790static CallBackFunction MenuClickShowTrains(int index)
791{
792 ShowVehicleListWindow((CompanyID)index, VEH_TRAIN);
793 return CBF_NONE;
794}
795
796/* --- Road vehicle button menu --- */
797

Callers

nothing calls this directly

Calls 1

ShowVehicleListWindowFunction · 0.85

Tested by

no test coverage detected