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

Function ToolbarMapClick

src/toolbar_gui.cpp:431–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429};
430
431static CallBackFunction ToolbarMapClick(Window *w)
432{
433 DropDownList list;
434 list.push_back(MakeDropDownListStringItem(STR_MAP_MENU_MAP_OF_WORLD, MME_SHOW_SMALLMAP));
435 list.push_back(MakeDropDownListStringItem(STR_MAP_MENU_EXTRA_VIEWPORT, MME_SHOW_EXTRAVIEWPORTS));
436 list.push_back(MakeDropDownListStringItem(STR_MAP_MENU_LINGRAPH_LEGEND, MME_SHOW_LINKGRAPH));
437 list.push_back(MakeDropDownListStringItem(STR_MAP_MENU_SIGN_LIST, MME_SHOW_SIGNLISTS));
438 PopupMainToolbarMenu(w, WID_TN_SMALL_MAP, std::move(list), 0);
439 return CBF_NONE;
440}
441
442static CallBackFunction ToolbarScenMapTownDir(Window *w)
443{

Callers

nothing calls this directly

Calls 3

PopupMainToolbarMenuFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected