OpenTTD Source 20260614-master-g1baea6b0fb
goal_gui.h File Reference

Goal GUI functions. More...

#include "company_type.h"
#include "goal_type.h"
#include "strings_type.h"

Go to the source code of this file.

Functions

void ShowGoalsList (CompanyID company)
 Open a goal list window.
void ShowGoalQuestion (uint16_t id, GoalQuestionType type, uint32_t button_mask, const EncodedString &question)
 Display a goal question.

Detailed Description

Goal GUI functions.

Definition in file goal_gui.h.

Function Documentation

◆ ShowGoalQuestion()

void ShowGoalQuestion ( uint16_t id,
GoalQuestionType type,
uint32_t button_mask,
const EncodedString & question )

Display a goal question.

Parameters
idWindow number to use.
typeType of question.
button_maskButtons to display.
questionQuestion to ask.

Definition at line 477 of file goal_gui.cpp.

References _goal_question_list_desc, Black, End, Error, and White.

Referenced by CmdGoalQuestion().

◆ ShowGoalsList()

void ShowGoalsList ( CompanyID company)

Open a goal list window.

Parameters
companyCompany to display the goals for, use CompanyID::Invalid() to display global goals.

Definition at line 312 of file goal_gui.cpp.

References _goals_list_desc, and AllocateWindowDescFront().

Referenced by MenuClickGoal(), GoalListWindow::OnClick(), MainToolbarWindow::OnHotkey(), and StoryBookWindow::OnPageElementClick().