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

Function InitializeRoadGUI

src/road_gui.cpp:1760–1764  ·  view source on GitHub ↗

* I really don't know why rail_gui.cpp has this too, shouldn't be included in the other one? */

Source from the content-addressed store, hash-verified

1758 * I really don't know why rail_gui.cpp has this too, shouldn't be included in the other one?
1759 */
1760void InitializeRoadGUI()
1761{
1762 BuildRoadToolbarWindow *w = dynamic_cast<BuildRoadToolbarWindow *>(FindWindowById(WC_BUILD_TOOLBAR, TRANSPORT_ROAD));
1763 if (w != nullptr) w->ModifyRoadType(_cur_roadtype);
1764}
1765
1766DropDownList GetRoadTypeDropDownList(RoadTramTypes rtts, bool for_replacement, bool all_option)
1767{

Callers 1

MakeNewGameDoneFunction · 0.85

Calls 2

FindWindowByIdFunction · 0.85
ModifyRoadTypeMethod · 0.80

Tested by

no test coverage detected