* Open a goal list window. * @param company %Company to display the goals for, use #CompanyID::Invalid() to display global goals. */
| 309 | * @param company %Company to display the goals for, use #CompanyID::Invalid() to display global goals. |
| 310 | */ |
| 311 | void ShowGoalsList(CompanyID company) |
| 312 | { |
| 313 | if (!Company::IsValidID(company)) company = (CompanyID)CompanyID::Invalid(); |
| 314 | |
| 315 | AllocateWindowDescFront<GoalListWindow>(_goals_list_desc, company); |
| 316 | } |
| 317 | |
| 318 | /** Ask a question about a goal. */ |
| 319 | struct GoalQuestionWindow : public Window { |
no test coverage detected