* Handle click on the entry in the Graphs or CompanyLeague. * * @param index Graph to show. * @return #CBF_NONE */
| 711 | * @return #CBF_NONE |
| 712 | */ |
| 713 | static CallBackFunction MenuClickGraphsOrLeague(int index) |
| 714 | { |
| 715 | switch (index) { |
| 716 | case GRMN_OPERATING_PROFIT_GRAPH: ShowOperatingProfitGraph(); break; |
| 717 | case GRMN_INCOME_GRAPH: ShowIncomeGraph(); break; |
| 718 | case GRMN_DELIVERED_CARGO_GRAPH: ShowDeliveredCargoGraph(); break; |
| 719 | case GRMN_PERFORMANCE_HISTORY_GRAPH: ShowPerformanceHistoryGraph(); break; |
| 720 | case GRMN_COMPANY_VALUE_GRAPH: ShowCompanyValueGraph(); break; |
| 721 | case GRMN_CARGO_PAYMENT_RATES: ShowCargoPaymentRates(); break; |
| 722 | case LTMN_PERFORMANCE_LEAGUE: ShowPerformanceLeagueTable(); break; |
| 723 | case LTMN_PERFORMANCE_RATING: ShowPerformanceRatingDetail(); break; |
| 724 | case LTMN_HIGHSCORE: ShowHighscoreTable(); break; |
| 725 | default: { |
| 726 | if (LeagueTable::IsValidID(index)) { |
| 727 | ShowScriptLeagueTable((LeagueTableID)index); |
| 728 | } |
| 729 | } |
| 730 | } |
| 731 | return CBF_NONE; |
| 732 | } |
| 733 | |
| 734 | |
| 735 |
nothing calls this directly
no test coverage detected