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

Function MenuClickIndustry

src/toolbar_gui.cpp:755–763  ·  view source on GitHub ↗

* Handle click on the entry in the Industry menu. * * @param index Menu entry number. * @return #CBF_NONE */

Source from the content-addressed store, hash-verified

753 * @return #CBF_NONE
754 */
755static CallBackFunction MenuClickIndustry(int index)
756{
757 switch (index) {
758 case 0: ShowIndustryDirectory(); break;
759 case 1: ShowIndustryCargoesWindow(); break;
760 case 2: ShowBuildIndustryWindow(); break;
761 }
762 return CBF_NONE;
763}
764
765/* --- Trains button menu + 1 helper function for all vehicles. --- */
766

Callers

nothing calls this directly

Calls 3

ShowIndustryDirectoryFunction · 0.85
ShowBuildIndustryWindowFunction · 0.85

Tested by

no test coverage detected