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

Function ShowGoalsList

src/goal_gui.cpp:311–316  ·  view source on GitHub ↗

* Open a goal list window. * @param company %Company to display the goals for, use #CompanyID::Invalid() to display global goals. */

Source from the content-addressed store, hash-verified

309 * @param company %Company to display the goals for, use #CompanyID::Invalid() to display global goals.
310 */
311void 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. */
319struct GoalQuestionWindow : public Window {

Callers 4

OnClickMethod · 0.85
MenuClickGoalFunction · 0.85
OnHotkeyMethod · 0.85
OnPageElementClickMethod · 0.85

Calls 1

InvalidFunction · 0.85

Tested by

no test coverage detected