| 736 | /* --- Industries button menu --- */ |
| 737 | |
| 738 | static CallBackFunction ToolbarIndustryClick(Window *w) |
| 739 | { |
| 740 | /* Disable build-industry menu if we are a spectator */ |
| 741 | if (_local_company == COMPANY_SPECTATOR) { |
| 742 | PopupMainToolbarMenu(w, WID_TN_INDUSTRIES, {STR_INDUSTRY_MENU_INDUSTRY_DIRECTORY, STR_INDUSTRY_MENU_INDUSTRY_CHAIN}); |
| 743 | } else { |
| 744 | PopupMainToolbarMenu(w, WID_TN_INDUSTRIES, {STR_INDUSTRY_MENU_INDUSTRY_DIRECTORY, STR_INDUSTRY_MENU_INDUSTRY_CHAIN, STR_INDUSTRY_MENU_FUND_NEW_INDUSTRY}); |
| 745 | } |
| 746 | return CBF_NONE; |
| 747 | } |
| 748 | |
| 749 | /** |
| 750 | * Handle click on the entry in the Industry menu. |
nothing calls this directly
no test coverage detected