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

Function ToolbarBuildTramClick

src/toolbar_gui.cpp:920–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

918/* --- Tram button menu --- */
919
920static CallBackFunction ToolbarBuildTramClick(Window *w)
921{
922 ShowDropDownList(w, GetRoadTypeDropDownList(RTTB_TRAM), _last_built_tramtype, WID_TN_TRAMS, 140, GetToolbarDropDownOptions());
923 return CBF_NONE;
924}
925
926/**
927 * Handle click on the entry in the Build Tram menu.

Callers

nothing calls this directly

Calls 3

ShowDropDownListFunction · 0.85
GetRoadTypeDropDownListFunction · 0.85

Tested by

no test coverage detected