OpenTTD
|
GUI for goals. More...
#include "stdafx.h"
#include "industry.h"
#include "town.h"
#include "window_gui.h"
#include "strings_func.h"
#include "date_func.h"
#include "viewport_func.h"
#include "gui.h"
#include "goal_base.h"
#include "core/geometry_func.hpp"
#include "company_func.h"
#include "company_base.h"
#include "story_base.h"
#include "command_func.h"
#include "string_func.h"
#include "widgets/goal_widget.h"
#include "table/strings.h"
#include "safeguards.h"
Go to the source code of this file.
Data Structures | |
struct | GoalListWindow |
Window for displaying goals. More... | |
struct | GoalQuestionWindow |
Ask a question about a goal. More... | |
Enumerations | |
enum | GoalColumn { GC_GOAL = 0, GC_PROGRESS } |
Goal list columns. More... | |
Functions | |
void | ShowGoalsList (CompanyID company) |
Open a goal list window. More... | |
void | ShowGoalQuestion (uint16 id, byte type, uint32 button_mask, const char *question) |
Display a goal question. More... | |
Variables | |
static const NWidgetPart | _nested_goals_list_widgets [] |
Widgets of the GoalListWindow. More... | |
static WindowDesc | _goals_list_desc (WDP_AUTO, "list_goals", 500, 127, WC_GOALS_LIST, WC_NONE, 0, _nested_goals_list_widgets, lengthof(_nested_goals_list_widgets)) |
static const NWidgetPart | _nested_goal_question_widgets [] |
Widgets of the goal question window. More... | |
static WindowDesc | _goal_question_list_desc (WDP_CENTER, NULL, 0, 0, WC_GOAL_QUESTION, WC_NONE, WDF_CONSTRUCTION, _nested_goal_question_widgets, lengthof(_nested_goal_question_widgets)) |
GUI for goals.
Definition in file goal_gui.cpp.
enum GoalColumn |
Goal list columns.
Enumerator | |
---|---|
GC_GOAL | Goal text column. |
GC_PROGRESS | Goal progress column. |
Definition at line 35 of file goal_gui.cpp.
void ShowGoalQuestion | ( | uint16 | id, |
byte | type, | ||
uint32 | button_mask, | ||
const char * | question | ||
) |
Display a goal question.
id | Window number to use. |
type | Type of question. |
button_mask | Buttons to display. |
question | Question to ask. |
Definition at line 489 of file goal_gui.cpp.
void ShowGoalsList | ( | CompanyID | company | ) |
Open a goal list window.
company | Company to display the goals for, use INVALID_COMPANY to display global goals. |
Definition at line 351 of file goal_gui.cpp.
Referenced by MenuClickGoal(), and StoryBookWindow::OnPageElementClick().
|
static |
Widgets of the goal question window.
Definition at line 450 of file goal_gui.cpp.
|
static |
Widgets of the GoalListWindow.
Definition at line 321 of file goal_gui.cpp.