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

Function ToolbarBuildRailClick

src/toolbar_gui.cpp:878–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

876/* --- Rail button menu --- */
877
878static CallBackFunction ToolbarBuildRailClick(Window *w)
879{
880 ShowDropDownList(w, GetRailTypeDropDownList(), _last_built_railtype, WID_TN_RAILS, 140, GetToolbarDropDownOptions());
881 return CBF_NONE;
882}
883
884/**
885 * Handle click on the entry in the Build Rail menu.

Callers

nothing calls this directly

Calls 3

ShowDropDownListFunction · 0.85
GetRailTypeDropDownListFunction · 0.85

Tested by

no test coverage detected