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

Function MenuClickMap

src/toolbar_gui.cpp:460–471  ·  view source on GitHub ↗

* Handle click on one of the entries in the Map menu. * * @param index Index being clicked. * @return #CBF_NONE */

Source from the content-addressed store, hash-verified

458 * @return #CBF_NONE
459 */
460static CallBackFunction MenuClickMap(int index)
461{
462 switch (index) {
463 case MME_SHOW_SMALLMAP: ShowSmallMap(); break;
464 case MME_SHOW_EXTRAVIEWPORTS: ShowExtraViewportWindow(); break;
465 case MME_SHOW_LINKGRAPH: ShowLinkGraphLegend(); break;
466 case MME_SHOW_SIGNLISTS: ShowSignList(); break;
467 case MME_SHOW_TOWNDIRECTORY: ShowTownDirectory(); break;
468 case MME_SHOW_INDUSTRYDIRECTORY: ShowIndustryDirectory(); break;
469 }
470 return CBF_NONE;
471}
472
473/* --- Town button menu --- */
474

Callers

nothing calls this directly

Calls 6

ShowSmallMapFunction · 0.85
ShowExtraViewportWindowFunction · 0.85
ShowLinkGraphLegendFunction · 0.85
ShowSignListFunction · 0.85
ShowTownDirectoryFunction · 0.85
ShowIndustryDirectoryFunction · 0.85

Tested by

no test coverage detected