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

Function ToolbarBuildAirClick

src/toolbar_gui.cpp:962–968  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

960/* --- Airport button menu --- */
961
962static CallBackFunction ToolbarBuildAirClick(Window *w)
963{
964 DropDownList list;
965 list.push_back(MakeDropDownListIconItem(SPR_IMG_AIRPORT, PAL_NONE, STR_AIRCRAFT_MENU_AIRPORT_CONSTRUCTION, 0));
966 ShowDropDownList(w, std::move(list), 0, WID_TN_AIR, 140, GetToolbarDropDownOptions());
967 return CBF_NONE;
968}
969
970/**
971 * Handle click on the entry in the Build Air menu.

Callers

nothing calls this directly

Calls 4

MakeDropDownListIconItemFunction · 0.85
ShowDropDownListFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected