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

Function MenuClickBuildTram

src/toolbar_gui.cpp:932–937  ·  view source on GitHub ↗

* Handle click on the entry in the Build Tram menu. * * @param index RoadType to show the build toolbar for. * @return #CBF_NONE */

Source from the content-addressed store, hash-verified

930 * @return #CBF_NONE
931 */
932static CallBackFunction MenuClickBuildTram(int index)
933{
934 _last_built_tramtype = (RoadType)index;
935 ShowBuildRoadToolbar(_last_built_tramtype);
936 return CBF_NONE;
937}
938
939/* --- Water button menu --- */
940

Callers

nothing calls this directly

Calls 1

ShowBuildRoadToolbarFunction · 0.85

Tested by

no test coverage detected