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

Function ToolbarBuildWaterClick

src/toolbar_gui.cpp:941–947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

939/* --- Water button menu --- */
940
941static CallBackFunction ToolbarBuildWaterClick(Window *w)
942{
943 DropDownList list;
944 list.push_back(MakeDropDownListIconItem(SPR_IMG_BUILD_CANAL, PAL_NONE, STR_WATERWAYS_MENU_WATERWAYS_CONSTRUCTION, 0));
945 ShowDropDownList(w, std::move(list), 0, WID_TN_WATER, 140, GetToolbarDropDownOptions());
946 return CBF_NONE;
947}
948
949/**
950 * Handle click on the entry in the Build Waterways menu.

Callers

nothing calls this directly

Calls 4

MakeDropDownListIconItemFunction · 0.85
ShowDropDownListFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected