#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 "company_gui.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.
GUI for goals.
Definition in file goal_gui.cpp.
◆ GoalColumn
Goal list columns.
Enumerator |
---|
GC_GOAL | Goal text column.
|
GC_PROGRESS | Goal progress column.
|
Definition at line 34 of file goal_gui.cpp.
◆ ShowGoalQuestion()
void ShowGoalQuestion |
( |
uint16 |
id, |
|
|
byte |
type, |
|
|
uint32 |
button_mask, |
|
|
const char * |
question |
|
) |
| |
Display a goal question.
- Parameters
-
id | Window number to use. |
type | Type of question. |
button_mask | Buttons to display. |
question | Question to ask. |
Definition at line 562 of file goal_gui.cpp.
◆ ShowGoalsList()
◆ _goal_question_list_desc
Initial value:= {
{
},
{
_nested_goal_question_widgets_info,
lengthof(_nested_goal_question_widgets_info),
},
{
_nested_goal_question_widgets_warning,
lengthof(_nested_goal_question_widgets_warning),
},
{
_nested_goal_question_widgets_error,
lengthof(_nested_goal_question_widgets_error),
},
}
Definition at line 528 of file goal_gui.cpp.
◆ _nested_goal_question_widgets_error
const NWidgetPart _nested_goal_question_widgets_error[] |
|
static |
Initial value:= {
NWidget(
WWT_EMPTY, INVALID_COLOUR,
WID_GQ_QUESTION),
SetMinimalSize(300, 0),
SetPadding(8, 8, 8, 8),
SetFill(1, 0),
}
Definition at line 501 of file goal_gui.cpp.
◆ _nested_goal_question_widgets_info
Initial value:= {
NWidget(
WWT_EMPTY, INVALID_COLOUR,
WID_GQ_QUESTION),
SetMinimalSize(300, 0),
SetPadding(8, 8, 8, 8),
SetFill(1, 0),
}
Definition at line 447 of file goal_gui.cpp.
◆ _nested_goal_question_widgets_question
const NWidgetPart _nested_goal_question_widgets_question[] |
|
static |
Initial value:= {
NWidget(
WWT_EMPTY, INVALID_COLOUR,
WID_GQ_QUESTION),
SetMinimalSize(300, 0),
SetPadding(8, 8, 8, 8),
SetFill(1, 0),
}
Widgets of the goal question window.
Definition at line 420 of file goal_gui.cpp.
◆ _nested_goal_question_widgets_warning
const NWidgetPart _nested_goal_question_widgets_warning[] |
|
static |
Initial value:= {
NWidget(
WWT_EMPTY, INVALID_COLOUR,
WID_GQ_QUESTION),
SetMinimalSize(300, 0),
SetPadding(8, 8, 8, 8),
SetFill(1, 0),
}
Definition at line 474 of file goal_gui.cpp.
◆ _nested_goals_list_widgets
Initial value:= {
NWidget(
WWT_EMPTY, COLOUR_GREY,
WID_GOAL_LIST),
SetResize(1, 1),
SetMinimalTextLines(2, 0),
SetFill(1, 1),
SetPadding(
WD_FRAMERECT_TOP, 2,
WD_FRAMETEXT_BOTTOM, 2),
}
Widgets of the GoalListWindow.
Definition at line 286 of file goal_gui.cpp.
@ WD_FRAMERECT_TOP
Offset at top to draw the frame rectangular area.
@ WDF_CONSTRUCTION
This window is used for construction; close it whenever changing company.
static const NWidgetPart _nested_goal_question_widgets_question[]
Widgets of the goal question window.
@ WD_FRAMERECT_BOTTOM
Offset at bottom to draw the frame rectangular area.
@ WD_FRAMETEXT_BOTTOM
Bottom offset of the text of the frame.
@ WC_NONE
No window, redirects to WC_MAIN_WINDOW.
@ WC_GOAL_QUESTION
Popup with a set of buttons, designed to ask the user a question from a GameScript.
#define lengthof(x)
Return the length of an fixed size array.
@ WDP_CENTER
Center the window.