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

Function ToolbarBuildRoadClick

src/toolbar_gui.cpp:899–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

897/* --- Road button menu --- */
898
899static CallBackFunction ToolbarBuildRoadClick(Window *w)
900{
901 ShowDropDownList(w, GetRoadTypeDropDownList(RTTB_ROAD), _last_built_roadtype, WID_TN_ROADS, 140, GetToolbarDropDownOptions());
902 return CBF_NONE;
903}
904
905/**
906 * Handle click on the entry in the Build Road menu.

Callers

nothing calls this directly

Calls 3

ShowDropDownListFunction · 0.85
GetRoadTypeDropDownListFunction · 0.85

Tested by

no test coverage detected