mirror of https://github.com/OpenTTD/OpenTTD
(svn r23600) -Codechange: link WC+number to a Widget, and the Widget to a Window class
parent
285621eb9a
commit
bcbdc3933c
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
/** Widgets for the background window to prevent smearing. */
|
/** Widgets for the background window to prevent smearing. */
|
||||||
static const struct NWidgetPart _background_widgets[] = {
|
static const struct NWidgetPart _background_widgets[] = {
|
||||||
NWidget(WWT_PANEL, COLOUR_DARK_BLUE, 0), SetResize(1, 1),
|
NWidget(WWT_PANEL, COLOUR_DARK_BLUE, WID_BB_BACKGROUND), SetResize(1, 1),
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -480,13 +480,6 @@ static void ShowBuildDockStationPicker(Window *parent)
|
||||||
new BuildDocksStationWindow(&_build_dock_station_desc, parent);
|
new BuildDocksStationWindow(&_build_dock_station_desc, parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Widgets for the build ship depot window. */
|
|
||||||
enum BuildDockDepotWidgets {
|
|
||||||
BDDW_BACKGROUND,
|
|
||||||
BDDW_X,
|
|
||||||
BDDW_Y,
|
|
||||||
};
|
|
||||||
|
|
||||||
struct BuildDocksDepotWindow : public PickerWindowBase {
|
struct BuildDocksDepotWindow : public PickerWindowBase {
|
||||||
private:
|
private:
|
||||||
static void UpdateDocksDirection()
|
static void UpdateDocksDirection()
|
||||||
|
@ -502,7 +495,7 @@ public:
|
||||||
BuildDocksDepotWindow(const WindowDesc *desc, Window *parent) : PickerWindowBase(parent)
|
BuildDocksDepotWindow(const WindowDesc *desc, Window *parent) : PickerWindowBase(parent)
|
||||||
{
|
{
|
||||||
this->InitNested(desc, TRANSPORT_WATER);
|
this->InitNested(desc, TRANSPORT_WATER);
|
||||||
this->LowerWidget(_ship_depot_direction + BDDW_X);
|
this->LowerWidget(_ship_depot_direction + WID_BDD_X);
|
||||||
UpdateDocksDirection();
|
UpdateDocksDirection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -510,20 +503,20 @@ public:
|
||||||
{
|
{
|
||||||
this->DrawWidgets();
|
this->DrawWidgets();
|
||||||
|
|
||||||
DrawShipDepotSprite(this->GetWidget<NWidgetBase>(BDDW_X)->pos_x + 64, this->GetWidget<NWidgetBase>(BDDW_X)->pos_y + 18, AXIS_X, DEPOT_PART_NORTH);
|
DrawShipDepotSprite(this->GetWidget<NWidgetBase>(WID_BDD_X)->pos_x + 64, this->GetWidget<NWidgetBase>(WID_BDD_X)->pos_y + 18, AXIS_X, DEPOT_PART_NORTH);
|
||||||
DrawShipDepotSprite(this->GetWidget<NWidgetBase>(BDDW_X)->pos_x + 32, this->GetWidget<NWidgetBase>(BDDW_X)->pos_y + 34, AXIS_X, DEPOT_PART_SOUTH);
|
DrawShipDepotSprite(this->GetWidget<NWidgetBase>(WID_BDD_X)->pos_x + 32, this->GetWidget<NWidgetBase>(WID_BDD_X)->pos_y + 34, AXIS_X, DEPOT_PART_SOUTH);
|
||||||
DrawShipDepotSprite(this->GetWidget<NWidgetBase>(BDDW_Y)->pos_x + 32, this->GetWidget<NWidgetBase>(BDDW_Y)->pos_y + 18, AXIS_Y, DEPOT_PART_NORTH);
|
DrawShipDepotSprite(this->GetWidget<NWidgetBase>(WID_BDD_Y)->pos_x + 32, this->GetWidget<NWidgetBase>(WID_BDD_Y)->pos_y + 18, AXIS_Y, DEPOT_PART_NORTH);
|
||||||
DrawShipDepotSprite(this->GetWidget<NWidgetBase>(BDDW_Y)->pos_x + 64, this->GetWidget<NWidgetBase>(BDDW_Y)->pos_y + 34, AXIS_Y, DEPOT_PART_SOUTH);
|
DrawShipDepotSprite(this->GetWidget<NWidgetBase>(WID_BDD_Y)->pos_x + 64, this->GetWidget<NWidgetBase>(WID_BDD_Y)->pos_y + 34, AXIS_Y, DEPOT_PART_SOUTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void OnClick(Point pt, int widget, int click_count)
|
virtual void OnClick(Point pt, int widget, int click_count)
|
||||||
{
|
{
|
||||||
switch (widget) {
|
switch (widget) {
|
||||||
case BDDW_X:
|
case WID_BDD_X:
|
||||||
case BDDW_Y:
|
case WID_BDD_Y:
|
||||||
this->RaiseWidget(_ship_depot_direction + BDDW_X);
|
this->RaiseWidget(_ship_depot_direction + WID_BDD_X);
|
||||||
_ship_depot_direction = (widget == BDDW_X ? AXIS_X : AXIS_Y);
|
_ship_depot_direction = (widget == WID_BDD_X ? AXIS_X : AXIS_Y);
|
||||||
this->LowerWidget(_ship_depot_direction + BDDW_X);
|
this->LowerWidget(_ship_depot_direction + WID_BDD_X);
|
||||||
SndPlayFx(SND_15_BEEP);
|
SndPlayFx(SND_15_BEEP);
|
||||||
UpdateDocksDirection();
|
UpdateDocksDirection();
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
|
@ -537,14 +530,14 @@ static const NWidgetPart _nested_build_docks_depot_widgets[] = {
|
||||||
NWidget(WWT_CLOSEBOX, COLOUR_DARK_GREEN),
|
NWidget(WWT_CLOSEBOX, COLOUR_DARK_GREEN),
|
||||||
NWidget(WWT_CAPTION, COLOUR_DARK_GREEN), SetDataTip(STR_DEPOT_BUILD_SHIP_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
|
NWidget(WWT_CAPTION, COLOUR_DARK_GREEN), SetDataTip(STR_DEPOT_BUILD_SHIP_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
|
||||||
EndContainer(),
|
EndContainer(),
|
||||||
NWidget(WWT_PANEL, COLOUR_DARK_GREEN, BDDW_BACKGROUND),
|
NWidget(WWT_PANEL, COLOUR_DARK_GREEN, WID_BDD_BACKGROUND),
|
||||||
NWidget(NWID_SPACER), SetMinimalSize(0, 3),
|
NWidget(NWID_SPACER), SetMinimalSize(0, 3),
|
||||||
NWidget(NWID_HORIZONTAL_LTR),
|
NWidget(NWID_HORIZONTAL_LTR),
|
||||||
NWidget(NWID_SPACER), SetMinimalSize(3, 0),
|
NWidget(NWID_SPACER), SetMinimalSize(3, 0),
|
||||||
NWidget(WWT_PANEL, COLOUR_GREY, BDDW_X), SetMinimalSize(98, 66), SetDataTip(0x0, STR_DEPOT_BUILD_SHIP_ORIENTATION_TOOLTIP),
|
NWidget(WWT_PANEL, COLOUR_GREY, WID_BDD_X), SetMinimalSize(98, 66), SetDataTip(0x0, STR_DEPOT_BUILD_SHIP_ORIENTATION_TOOLTIP),
|
||||||
EndContainer(),
|
EndContainer(),
|
||||||
NWidget(NWID_SPACER), SetMinimalSize(2, 0),
|
NWidget(NWID_SPACER), SetMinimalSize(2, 0),
|
||||||
NWidget(WWT_PANEL, COLOUR_GREY, BDDW_Y), SetMinimalSize(98, 66), SetDataTip(0x0, STR_DEPOT_BUILD_SHIP_ORIENTATION_TOOLTIP),
|
NWidget(WWT_PANEL, COLOUR_GREY, WID_BDD_Y), SetMinimalSize(98, 66), SetDataTip(0x0, STR_DEPOT_BUILD_SHIP_ORIENTATION_TOOLTIP),
|
||||||
EndContainer(),
|
EndContainer(),
|
||||||
NWidget(NWID_SPACER), SetMinimalSize(3, 0),
|
NWidget(NWID_SPACER), SetMinimalSize(3, 0),
|
||||||
EndContainer(),
|
EndContainer(),
|
||||||
|
|
|
@ -17,6 +17,19 @@
|
||||||
#include "strings_type.h"
|
#include "strings_type.h"
|
||||||
#include "sound_type.h"
|
#include "sound_type.h"
|
||||||
|
|
||||||
|
/** Constants in the message options window. */
|
||||||
|
enum MessageOptionsSpace {
|
||||||
|
MOS_WIDG_PER_SETTING = 4, ///< Number of widgets needed for each news category, starting at widget #WID_MO_START_OPTION.
|
||||||
|
|
||||||
|
MOS_LEFT_EDGE = 6, ///< Number of pixels between left edge of the window and the options buttons column.
|
||||||
|
MOS_COLUMN_SPACING = 4, ///< Number of pixels between the buttons and the description columns.
|
||||||
|
MOS_RIGHT_EDGE = 6, ///< Number of pixels between right edge of the window and the options descriptions column.
|
||||||
|
MOS_BUTTON_SPACE = 10, ///< Additional space in the button with the option value (for better looks).
|
||||||
|
|
||||||
|
MOS_ABOVE_GLOBAL_SETTINGS = 6, ///< Number of vertical pixels between the categories and the global options.
|
||||||
|
MOS_BOTTOM_EDGE = 6, ///< Number of pixels between bottom edge of the window and bottom of the global options.
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Type of news.
|
* Type of news.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_AI_WIDGET_H
|
#ifndef WIDGETS_AI_WIDGET_H
|
||||||
#define WIDGETS_AI_WIDGET_H
|
#define WIDGETS_AI_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_AI_LIST. */
|
/** Widgets of the #AIListWindow class. */
|
||||||
enum AIListWidgets {
|
enum AIListWidgets {
|
||||||
WID_AIL_LIST, ///< The matrix with all available AIs.
|
WID_AIL_LIST, ///< The matrix with all available AIs.
|
||||||
WID_AIL_SCROLLBAR, ///< Scrollbar next to the AI list.
|
WID_AIL_SCROLLBAR, ///< Scrollbar next to the AI list.
|
||||||
|
@ -21,7 +21,7 @@ enum AIListWidgets {
|
||||||
WID_AIL_CANCEL, ///< Cancel button.
|
WID_AIL_CANCEL, ///< Cancel button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_AI_SETTINGS. */
|
/** Widgets of the #AISettingsWindow class. */
|
||||||
enum AISettingsWidgets {
|
enum AISettingsWidgets {
|
||||||
WID_AIS_BACKGROUND, ///< Panel to draw the settings on.
|
WID_AIS_BACKGROUND, ///< Panel to draw the settings on.
|
||||||
WID_AIS_SCROLLBAR, ///< Scrollbar to scroll through all settings.
|
WID_AIS_SCROLLBAR, ///< Scrollbar to scroll through all settings.
|
||||||
|
@ -29,7 +29,7 @@ enum AISettingsWidgets {
|
||||||
WID_AIS_RESET, ///< Reset button.
|
WID_AIS_RESET, ///< Reset button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_GAME_OPTIONS (WC_GAME_OPTIONS is also used in others). */
|
/** Widgets of the #AIConfigWindow class. */
|
||||||
enum AIConfigWidgets {
|
enum AIConfigWidgets {
|
||||||
WID_AIC_BACKGROUND, ///< Window background.
|
WID_AIC_BACKGROUND, ///< Window background.
|
||||||
WID_AIC_DECREASE, ///< Decrease the number of AIs.
|
WID_AIC_DECREASE, ///< Decrease the number of AIs.
|
||||||
|
@ -45,7 +45,7 @@ enum AIConfigWidgets {
|
||||||
WID_AIC_CONTENT_DOWNLOAD, ///< Download content button.
|
WID_AIC_CONTENT_DOWNLOAD, ///< Download content button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_AI_DEBUG. */
|
/** Widgets of the #AIDebugWindow class. */
|
||||||
enum AIDebugWidgets {
|
enum AIDebugWidgets {
|
||||||
WID_AID_VIEW, ///< The row of company buttons.
|
WID_AID_VIEW, ///< The row of company buttons.
|
||||||
WID_AID_NAME_TEXT, ///< Name of the current selected.
|
WID_AID_NAME_TEXT, ///< Name of the current selected.
|
||||||
|
|
|
@ -12,13 +12,13 @@
|
||||||
#ifndef WIDGETS_AIRPORT_WIDGET_H
|
#ifndef WIDGETS_AIRPORT_WIDGET_H
|
||||||
#define WIDGETS_AIRPORT_WIDGET_H
|
#define WIDGETS_AIRPORT_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_BUILD_TOOLBAR (WC_BUILD_TOOLBAR is also used in others). */
|
/** Widgets of the #BuildAirToolbarWindow class. */
|
||||||
enum AirportToolbarWidgets {
|
enum AirportToolbarWidgets {
|
||||||
WID_AT_AIRPORT, ///< Build airport button.
|
WID_AT_AIRPORT, ///< Build airport button.
|
||||||
WID_AT_DEMOLISH, ///< Demolish button.
|
WID_AT_DEMOLISH, ///< Demolish button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_BUILD_STATION (WC_BUILD_STATION is also used in others). */
|
/** Widgets of the #BuildAirportWindow class. */
|
||||||
enum AirportPickerWidgets {
|
enum AirportPickerWidgets {
|
||||||
WID_AP_CLASS_DROPDOWN, ///< Dropdown of airport classes.
|
WID_AP_CLASS_DROPDOWN, ///< Dropdown of airport classes.
|
||||||
WID_AP_AIRPORT_LIST, ///< List of airports.
|
WID_AP_AIRPORT_LIST, ///< List of airports.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_AUTOREPLACE_WIDGET_H
|
#ifndef WIDGETS_AUTOREPLACE_WIDGET_H
|
||||||
#define WIDGETS_AUTOREPLACE_WIDGET_H
|
#define WIDGETS_AUTOREPLACE_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_REPLACE_VEHICLE. */
|
/** Widgets of the #ReplaceVehicleWindow class. */
|
||||||
enum ReplaceVehicleWidgets {
|
enum ReplaceVehicleWidgets {
|
||||||
WID_RV_CAPTION, ///< Caption of the window.
|
WID_RV_CAPTION, ///< Caption of the window.
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,12 @@
|
||||||
#ifndef WIDGETS_BOOTSTRAP_WIDGET_H
|
#ifndef WIDGETS_BOOTSTRAP_WIDGET_H
|
||||||
#define WIDGETS_BOOTSTRAP_WIDGET_H
|
#define WIDGETS_BOOTSTRAP_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_CONFIRM_POPUP_QUERY (WC_CONFIRM_POPUP_QUERY is also used in QueryWidgets). */
|
/** Widgets of the #BootstrapBackground class. */
|
||||||
|
enum BootstrapBackgroundWidgets {
|
||||||
|
WID_BB_BACKGROUND, ///< Background of the window.
|
||||||
|
};
|
||||||
|
|
||||||
|
/** Widgets of the #BootstrapContentDownloadStatusWindow class. */
|
||||||
enum BootstrapAskForDownloadWidgets {
|
enum BootstrapAskForDownloadWidgets {
|
||||||
WID_BAFD_QUESTION, ///< The question whether to download.
|
WID_BAFD_QUESTION, ///< The question whether to download.
|
||||||
WID_BAFD_YES, ///< An affirmative answer to the question.
|
WID_BAFD_YES, ///< An affirmative answer to the question.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_BRIDGE_WIDGET_H
|
#ifndef WIDGETS_BRIDGE_WIDGET_H
|
||||||
#define WIDGETS_BRIDGE_WIDGET_H
|
#define WIDGETS_BRIDGE_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_BUILD_BRIDGE. */
|
/** Widgets of the #BuildBridgeWindow class. */
|
||||||
enum BuildBridgeSelectionWidgets {
|
enum BuildBridgeSelectionWidgets {
|
||||||
WID_BBS_CAPTION, ///< Caption of the window.
|
WID_BBS_CAPTION, ///< Caption of the window.
|
||||||
WID_BBS_DROPDOWN_ORDER, ///< Direction of sort dropdown.
|
WID_BBS_DROPDOWN_ORDER, ///< Direction of sort dropdown.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_BUILD_VEHICLE_WIDGET_H
|
#ifndef WIDGETS_BUILD_VEHICLE_WIDGET_H
|
||||||
#define WIDGETS_BUILD_VEHICLE_WIDGET_H
|
#define WIDGETS_BUILD_VEHICLE_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_BUILD_VEHICLE. */
|
/** Widgets of the #BuildVehicleWindow class. */
|
||||||
enum BuildVehicleWidgets {
|
enum BuildVehicleWidgets {
|
||||||
WID_BV_CAPTION, ///< Caption of window.
|
WID_BV_CAPTION, ///< Caption of window.
|
||||||
WID_BV_SORT_ASSENDING_DESCENDING, ///< Sort direction.
|
WID_BV_SORT_ASSENDING_DESCENDING, ///< Sort direction.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_CHEAT_WIDGET_H
|
#ifndef WIDGETS_CHEAT_WIDGET_H
|
||||||
#define WIDGETS_CHEAT_WIDGET_H
|
#define WIDGETS_CHEAT_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_CHEATS. */
|
/** Widgets of the #CheatWindow class.. */
|
||||||
enum CheatWidgets {
|
enum CheatWidgets {
|
||||||
WID_C_PANEL, ///< Panel where all cheats are shown in.
|
WID_C_PANEL, ///< Panel where all cheats are shown in.
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_COMPANY_WIDGET_H
|
#ifndef WIDGETS_COMPANY_WIDGET_H
|
||||||
#define WIDGETS_COMPANY_WIDGET_H
|
#define WIDGETS_COMPANY_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_COMPANY. */
|
/** Widgets of the #CompanyWindow class. */
|
||||||
enum CompanyWidgets {
|
enum CompanyWidgets {
|
||||||
WID_C_CAPTION, ///< Caption of the window.
|
WID_C_CAPTION, ///< Caption of the window.
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ enum CompanyWidgets {
|
||||||
WID_C_COMPANY_JOIN, ///< Button to join company.
|
WID_C_COMPANY_JOIN, ///< Button to join company.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_FINANCES. */
|
/** Widgets of the #CompanyFinancesWindow class. */
|
||||||
enum CompanyFinancesWidgets {
|
enum CompanyFinancesWidgets {
|
||||||
WID_CF_CAPTION, ///< Caption of the window.
|
WID_CF_CAPTION, ///< Caption of the window.
|
||||||
WID_CF_TOGGLE_SIZE, ///< Toggle windows size.
|
WID_CF_TOGGLE_SIZE, ///< Toggle windows size.
|
||||||
|
@ -78,7 +78,7 @@ enum CompanyFinancesWidgets {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Widgets of the WC_COMPANY_COLOUR. */
|
/** Widgets of the #SelectCompanyLiveryWindow class. */
|
||||||
enum SelectCompanyLiveryWidgets {
|
enum SelectCompanyLiveryWidgets {
|
||||||
WID_SCL_CAPTION, ///< Caption of window.
|
WID_SCL_CAPTION, ///< Caption of window.
|
||||||
WID_SCL_CLASS_GENERAL, ///< Class general.
|
WID_SCL_CLASS_GENERAL, ///< Class general.
|
||||||
|
@ -93,7 +93,8 @@ enum SelectCompanyLiveryWidgets {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Widgets of the WC_COMPANY_MANAGER_FACE.
|
/**
|
||||||
|
* Widgets of the #SelectCompanyManagerFaceWindow class.
|
||||||
* Do not change the order of the widgets from WID_SCMF_HAS_MOUSTACHE_EARRING to WID_SCMF_GLASSES_R,
|
* Do not change the order of the widgets from WID_SCMF_HAS_MOUSTACHE_EARRING to WID_SCMF_GLASSES_R,
|
||||||
* this order is needed for the WE_CLICK event of DrawFaceStringLabel().
|
* this order is needed for the WE_CLICK event of DrawFaceStringLabel().
|
||||||
*/
|
*/
|
||||||
|
@ -164,7 +165,7 @@ enum SelectCompanyManagerFaceWidgets {
|
||||||
WID_SCMF_GLASSES_R, ///< Glasses right.
|
WID_SCMF_GLASSES_R, ///< Glasses right.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_COMPANY_INFRASTRUCTURE. */
|
/** Widgets of the #CompanyInfrastructureWindow class. */
|
||||||
enum CompanyInfrastructureWidgets {
|
enum CompanyInfrastructureWidgets {
|
||||||
WID_CI_CAPTION, ///< Caption of window.
|
WID_CI_CAPTION, ///< Caption of window.
|
||||||
WID_CI_RAIL_DESC, ///< Description of rail.
|
WID_CI_RAIL_DESC, ///< Description of rail.
|
||||||
|
@ -179,7 +180,7 @@ enum CompanyInfrastructureWidgets {
|
||||||
WID_CI_TOTAL, ///< Count of total.
|
WID_CI_TOTAL, ///< Count of total.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_BUY_COMPANY. */
|
/** Widgets of the #BuyCompanyWindow class. */
|
||||||
enum BuyCompanyWidgets {
|
enum BuyCompanyWidgets {
|
||||||
WID_BC_CAPTION, ///< Caption of window.
|
WID_BC_CAPTION, ///< Caption of window.
|
||||||
WID_BC_FACE, ///< Face button.
|
WID_BC_FACE, ///< Face button.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_CONSOLE_WIDGET_H
|
#ifndef WIDGETS_CONSOLE_WIDGET_H
|
||||||
#define WIDGETS_CONSOLE_WIDGET_H
|
#define WIDGETS_CONSOLE_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_CONSOLE. */
|
/** Widgets of the #IConsoleWindow class. */
|
||||||
enum ConsoleWidgets {
|
enum ConsoleWidgets {
|
||||||
WID_C_BACKGROUND, ///< Background of the console.
|
WID_C_BACKGROUND, ///< Background of the console.
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_DATE_WIDGET_H
|
#ifndef WIDGETS_DATE_WIDGET_H
|
||||||
#define WIDGETS_DATE_WIDGET_H
|
#define WIDGETS_DATE_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_SET_DATE. */
|
/** Widgets of the #SetDateWindow class. */
|
||||||
enum SetDateWidgets {
|
enum SetDateWidgets {
|
||||||
WID_SD_DAY, ///< Dropdown for the day.
|
WID_SD_DAY, ///< Dropdown for the day.
|
||||||
WID_SD_MONTH, ///< Dropdown for the month.
|
WID_SD_MONTH, ///< Dropdown for the month.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_DEPOT_WIDGET_H
|
#ifndef WIDGETS_DEPOT_WIDGET_H
|
||||||
#define WIDGETS_DEPOT_WIDGET_H
|
#define WIDGETS_DEPOT_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_VEHICLE_DEPOT. */
|
/** Widgets of the #DepotWindow class. */
|
||||||
enum DepotWidgets {
|
enum DepotWidgets {
|
||||||
WID_D_CAPTION, ///< Caption of window.
|
WID_D_CAPTION, ///< Caption of window.
|
||||||
WID_D_SELL, ///< Sell button.
|
WID_D_SELL, ///< Sell button.
|
||||||
|
|
|
@ -12,7 +12,14 @@
|
||||||
#ifndef WIDGETS_DOCK_WIDGET_H
|
#ifndef WIDGETS_DOCK_WIDGET_H
|
||||||
#define WIDGETS_DOCK_WIDGET_H
|
#define WIDGETS_DOCK_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_SCEN_BUILD_TOOLBAR / WC_BUILD_TOOLBAR (WC_SCEN_BUILD_TOOLBAR / WC_BUILD_TOOLBAR is also used in others). */
|
/** Widgets of the #BuildDocksDepotWindow class. */
|
||||||
|
enum BuildDockDepotWidgets {
|
||||||
|
WID_BDD_BACKGROUND, ///< Background of the window.
|
||||||
|
WID_BDD_X, ///< X-direction button.
|
||||||
|
WID_BDD_Y, ///< Y-direction button.
|
||||||
|
};
|
||||||
|
|
||||||
|
/** Widgets of the #BuildDocksToolbarWindow class. */
|
||||||
enum DockToolbarWidgets {
|
enum DockToolbarWidgets {
|
||||||
WID_DT_CANAL, ///< Build canal button.
|
WID_DT_CANAL, ///< Build canal button.
|
||||||
WID_DT_LOCK, ///< Build lock button.
|
WID_DT_LOCK, ///< Build lock button.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_DROPDOWN_WIDGET_H
|
#ifndef WIDGETS_DROPDOWN_WIDGET_H
|
||||||
#define WIDGETS_DROPDOWN_WIDGET_H
|
#define WIDGETS_DROPDOWN_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_DROPDOWN_MENU. */
|
/** Widgets of the #DropdownWindow class. */
|
||||||
enum DropdownMenuWidgets {
|
enum DropdownMenuWidgets {
|
||||||
WID_DM_ITEMS, ///< Panel showing the dropdown items.
|
WID_DM_ITEMS, ///< Panel showing the dropdown items.
|
||||||
WID_DM_SHOW_SCROLL, ///< Hide scrollbar if too few items.
|
WID_DM_SHOW_SCROLL, ///< Hide scrollbar if too few items.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_ENGINE_WIDGET_H
|
#ifndef WIDGETS_ENGINE_WIDGET_H
|
||||||
#define WIDGETS_ENGINE_WIDGET_H
|
#define WIDGETS_ENGINE_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_ENGINE_PREVIEW. */
|
/** Widgets of the #EnginePreviewWindow class. */
|
||||||
enum EnginePreviewWidgets {
|
enum EnginePreviewWidgets {
|
||||||
WID_EP_QUESTION, ///< The container for the question.
|
WID_EP_QUESTION, ///< The container for the question.
|
||||||
WID_EP_NO, ///< No button.
|
WID_EP_NO, ///< No button.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_ERROR_WIDGET_H
|
#ifndef WIDGETS_ERROR_WIDGET_H
|
||||||
#define WIDGETS_ERROR_WIDGET_H
|
#define WIDGETS_ERROR_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_ERRMSG. */
|
/** Widgets of the #ErrmsgWindow class. */
|
||||||
enum ErrorMessageWidgets {
|
enum ErrorMessageWidgets {
|
||||||
WID_EM_CAPTION, ///< Caption of the window.
|
WID_EM_CAPTION, ///< Caption of the window.
|
||||||
WID_EM_FACE, ///< Error title.
|
WID_EM_FACE, ///< Error title.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_FIOS_WIDGET_H
|
#ifndef WIDGETS_FIOS_WIDGET_H
|
||||||
#define WIDGETS_FIOS_WIDGET_H
|
#define WIDGETS_FIOS_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_SAVELOAD. */
|
/** Widgets of the #SaveLoadWindow class. */
|
||||||
enum SaveLoadWidgets {
|
enum SaveLoadWidgets {
|
||||||
WID_SL_CAPTION, ///< Caption of the window.
|
WID_SL_CAPTION, ///< Caption of the window.
|
||||||
WID_SL_SORT_BYNAME, ///< Sort by name button.
|
WID_SL_SORT_BYNAME, ///< Sort by name button.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_GENWORLD_WIDGET_H
|
#ifndef WIDGETS_GENWORLD_WIDGET_H
|
||||||
#define WIDGETS_GENWORLD_WIDGET_H
|
#define WIDGETS_GENWORLD_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_GENERATE_LANDSCAPE (WC_GENERATE_LANDSCAPE is also used in CreateScenarioWidgets). */
|
/** Widgets of the #GenerateLandscapeWindow class. */
|
||||||
enum GenerateLandscapeWidgets {
|
enum GenerateLandscapeWidgets {
|
||||||
WID_GL_TEMPERATE, ///< Button with icon "Temperate".
|
WID_GL_TEMPERATE, ///< Button with icon "Temperate".
|
||||||
WID_GL_ARCTIC, ///< Button with icon "Arctic".
|
WID_GL_ARCTIC, ///< Button with icon "Arctic".
|
||||||
|
@ -58,7 +58,7 @@ enum GenerateLandscapeWidgets {
|
||||||
WID_GL_WATER_SW, ///< SW 'Water'/'Freeform'.
|
WID_GL_WATER_SW, ///< SW 'Water'/'Freeform'.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_GENERATE_LANDSCAPE (WC_GENERATE_LANDSCAPE is also used in GenerateLandscapeWidgets). */
|
/** Widgets of the #CreateScenarioWindow class. */
|
||||||
enum CreateScenarioWidgets {
|
enum CreateScenarioWidgets {
|
||||||
WID_CS_TEMPERATE, ///< Select temperate landscape style.
|
WID_CS_TEMPERATE, ///< Select temperate landscape style.
|
||||||
WID_CS_ARCTIC, ///< Select arctic landscape style.
|
WID_CS_ARCTIC, ///< Select arctic landscape style.
|
||||||
|
@ -76,7 +76,7 @@ enum CreateScenarioWidgets {
|
||||||
WID_CS_FLAT_LAND_HEIGHT_UP, ///< Increase flat land height.
|
WID_CS_FLAT_LAND_HEIGHT_UP, ///< Increase flat land height.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_MODAL_PROGRESS (WC_MODAL_PROGRESS is also used in ScanProgressWidgets). */
|
/** Widgets of the #GenerateProgressWindow class. */
|
||||||
enum GenerationProgressWidgets {
|
enum GenerationProgressWidgets {
|
||||||
WID_GP_PROGRESS_BAR, ///< Progress bar.
|
WID_GP_PROGRESS_BAR, ///< Progress bar.
|
||||||
WID_GP_PROGRESS_TEXT, ///< Text with the progress bar.
|
WID_GP_PROGRESS_TEXT, ///< Text with the progress bar.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
#include "../economy_type.h"
|
#include "../economy_type.h"
|
||||||
|
|
||||||
/** Widgets of the WC_GRAPH_LEGEND. */
|
/** Widgets of the #GraphLegendWindow class. */
|
||||||
enum GraphLegendWidgets {
|
enum GraphLegendWidgets {
|
||||||
WID_GL_BACKGROUND, ///< Background of the window.
|
WID_GL_BACKGROUND, ///< Background of the window.
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ enum GraphLegendWidgets {
|
||||||
WID_GL_LAST_COMPANY = WID_GL_FIRST_COMPANY + MAX_COMPANIES - 1, ///< Last company in the legend.
|
WID_GL_LAST_COMPANY = WID_GL_FIRST_COMPANY + MAX_COMPANIES - 1, ///< Last company in the legend.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_OPERATING_PROFIT / WC_DELIVERED_CARGO / WC_COMPANY_VALUE / WC_INCOME_GRAPH. */
|
/** Widgets of the #OperatingProfitGraphWindow class, #IncomeGraphWindow class, #DeliveredCargoGraphWindow class, and #CompanyValueGraphWindow class. */
|
||||||
enum CompanyValueWidgets {
|
enum CompanyValueWidgets {
|
||||||
WID_CV_KEY_BUTTON, ///< Key button.
|
WID_CV_KEY_BUTTON, ///< Key button.
|
||||||
WID_CV_BACKGROUND, ///< Background of the window.
|
WID_CV_BACKGROUND, ///< Background of the window.
|
||||||
|
@ -30,7 +30,7 @@ enum CompanyValueWidgets {
|
||||||
WID_CV_RESIZE, ///< Resize button.
|
WID_CV_RESIZE, ///< Resize button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widget of the WC_PERFORMANCE_HISTORY. */
|
/** Widget of the #PerformanceHistoryGraphWindow class. */
|
||||||
enum PerformanceHistoryGraphWidgets {
|
enum PerformanceHistoryGraphWidgets {
|
||||||
WID_PHG_KEY, ///< Key button.
|
WID_PHG_KEY, ///< Key button.
|
||||||
WID_PHG_DETAILED_PERFORMANCE, ///< Detailed performance.
|
WID_PHG_DETAILED_PERFORMANCE, ///< Detailed performance.
|
||||||
|
@ -39,7 +39,7 @@ enum PerformanceHistoryGraphWidgets {
|
||||||
WID_PHG_RESIZE, ///< Resize button.
|
WID_PHG_RESIZE, ///< Resize button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widget of the WC_PAYMENT_RATES. */
|
/** Widget of the #PaymentRatesGraphWindow class. */
|
||||||
enum CargoPaymentRatesWidgets {
|
enum CargoPaymentRatesWidgets {
|
||||||
WID_CPR_BACKGROUND, ///< Background of the window.
|
WID_CPR_BACKGROUND, ///< Background of the window.
|
||||||
WID_CPR_HEADER, ///< Header.
|
WID_CPR_HEADER, ///< Header.
|
||||||
|
@ -51,12 +51,12 @@ enum CargoPaymentRatesWidgets {
|
||||||
WID_CPR_CARGO_FIRST, ///< First cargo in the list.
|
WID_CPR_CARGO_FIRST, ///< First cargo in the list.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widget of the WC_COMPANY_LEAGUE. */
|
/** Widget of the #CompanyLeagueWindow class. */
|
||||||
enum CompanyLeagueWidgets {
|
enum CompanyLeagueWidgets {
|
||||||
WID_CL_BACKGROUND, ///< Background of the window.
|
WID_CL_BACKGROUND, ///< Background of the window.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widget of the WC_PERFORMANCE_DETAIL. */
|
/** Widget of the #PerformanceRatingDetailWindow class. */
|
||||||
enum PerformanceRatingDetailsWidgets {
|
enum PerformanceRatingDetailsWidgets {
|
||||||
WID_PRD_SCORE_FIRST, ///< First entry in the score list.
|
WID_PRD_SCORE_FIRST, ///< First entry in the score list.
|
||||||
WID_PRD_SCORE_LAST = WID_PRD_SCORE_FIRST + (SCORE_END - SCORE_BEGIN) - 1, ///< Last entry in the score list.
|
WID_PRD_SCORE_LAST = WID_PRD_SCORE_FIRST + (SCORE_END - SCORE_BEGIN) - 1, ///< Last entry in the score list.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_GROUP_WIDGET_H
|
#ifndef WIDGETS_GROUP_WIDGET_H
|
||||||
#define WIDGETS_GROUP_WIDGET_H
|
#define WIDGETS_GROUP_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_TRAINS_LIST / WC_ROADVEH_LIST / WC_SHIPS_LIST / WC_AIRCRAFT_LIST. */
|
/** Widgets of the #VehicleGroupWindow class. */
|
||||||
enum GroupListWidgets {
|
enum GroupListWidgets {
|
||||||
WID_GL_CAPTION, ///< Caption of the window.
|
WID_GL_CAPTION, ///< Caption of the window.
|
||||||
WID_GL_SORT_BY_ORDER, ///< Sort order.
|
WID_GL_SORT_BY_ORDER, ///< Sort order.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_HIGHSCORE_WIDGET_H
|
#ifndef WIDGETS_HIGHSCORE_WIDGET_H
|
||||||
#define WIDGETS_HIGHSCORE_WIDGET_H
|
#define WIDGETS_HIGHSCORE_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_HIGHSCORE / WC_ENDSCREEN. */
|
/** Widgets of the #EndGameHighScoreBaseWindow class and #HighScoreWindow class. */
|
||||||
enum HighscoreWidgets {
|
enum HighscoreWidgets {
|
||||||
WID_H_BACKGROUND, ///< Background of the window.
|
WID_H_BACKGROUND, ///< Background of the window.
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_INDUSTRY_WIDGET_H
|
#ifndef WIDGETS_INDUSTRY_WIDGET_H
|
||||||
#define WIDGETS_INDUSTRY_WIDGET_H
|
#define WIDGETS_INDUSTRY_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_BUILD_INDUSTRY. */
|
/** Widgets of the #BuildIndustryWindow class. */
|
||||||
enum DynamicPlaceIndustriesWidgets {
|
enum DynamicPlaceIndustriesWidgets {
|
||||||
WID_DPI_MATRIX_WIDGET, ///< Matrix of the industries.
|
WID_DPI_MATRIX_WIDGET, ///< Matrix of the industries.
|
||||||
WID_DPI_SCROLLBAR, ///< Scrollbar of the matrix.
|
WID_DPI_SCROLLBAR, ///< Scrollbar of the matrix.
|
||||||
|
@ -21,7 +21,7 @@ enum DynamicPlaceIndustriesWidgets {
|
||||||
WID_DPI_FUND_WIDGET, ///< Fund button.
|
WID_DPI_FUND_WIDGET, ///< Fund button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_INDUSTRY_VIEW. */
|
/** Widgets of the #IndustryViewWindow class. */
|
||||||
enum IndustryViewWidgets {
|
enum IndustryViewWidgets {
|
||||||
WID_IV_CAPTION, ///< Caption of the window.
|
WID_IV_CAPTION, ///< Caption of the window.
|
||||||
WID_IV_VIEWPORT, ///< Viewport of the industry.
|
WID_IV_VIEWPORT, ///< Viewport of the industry.
|
||||||
|
@ -30,7 +30,7 @@ enum IndustryViewWidgets {
|
||||||
WID_IV_DISPLAY, ///< Display chain button.
|
WID_IV_DISPLAY, ///< Display chain button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_INDUSTRY_DIRECTORY. */
|
/** Widgets of the #IndustryDirectoryWindow class. */
|
||||||
enum IndustryDirectoryWidgets {
|
enum IndustryDirectoryWidgets {
|
||||||
WID_ID_DROPDOWN_ORDER, ///< Dropdown for the order of the sort.
|
WID_ID_DROPDOWN_ORDER, ///< Dropdown for the order of the sort.
|
||||||
WID_ID_DROPDOWN_CRITERIA, ///< Dropdown for the criteria of the sort.
|
WID_ID_DROPDOWN_CRITERIA, ///< Dropdown for the criteria of the sort.
|
||||||
|
@ -38,7 +38,7 @@ enum IndustryDirectoryWidgets {
|
||||||
WID_ID_SCROLLBAR, ///< Scrollbar of the list.
|
WID_ID_SCROLLBAR, ///< Scrollbar of the list.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_INDUSTRY_CARGOES */
|
/** Widgets of the #IndustryCargoesWindow class */
|
||||||
enum IndustryCargoesWidgets {
|
enum IndustryCargoesWidgets {
|
||||||
WID_IC_CAPTION, ///< Caption of the window.
|
WID_IC_CAPTION, ///< Caption of the window.
|
||||||
WID_IC_NOTIFY, ///< Row of buttons at the bottom.
|
WID_IC_NOTIFY, ///< Row of buttons at the bottom.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_INTRO_WIDGET_H
|
#ifndef WIDGETS_INTRO_WIDGET_H
|
||||||
#define WIDGETS_INTRO_WIDGET_H
|
#define WIDGETS_INTRO_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_SELECT_GAME. */
|
/** Widgets of the #SelectGameWindow class. */
|
||||||
enum SelectGameIntroWidgets {
|
enum SelectGameIntroWidgets {
|
||||||
WID_SGI_GENERATE_GAME, ///< Generate game button.
|
WID_SGI_GENERATE_GAME, ///< Generate game button.
|
||||||
WID_SGI_LOAD_GAME, ///< Load game button.
|
WID_SGI_LOAD_GAME, ///< Load game button.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_MAIN_WIDGET_H
|
#ifndef WIDGETS_MAIN_WIDGET_H
|
||||||
#define WIDGETS_MAIN_WIDGET_H
|
#define WIDGETS_MAIN_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_MAIN_WINDOW. */
|
/** Widgets of the #MainWindow class. */
|
||||||
enum MainWidgets {
|
enum MainWidgets {
|
||||||
WID_M_VIEWPORT, ///< Main window viewport.
|
WID_M_VIEWPORT, ///< Main window viewport.
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,23 +12,23 @@
|
||||||
#ifndef WIDGETS_MISC_WIDGET_H
|
#ifndef WIDGETS_MISC_WIDGET_H
|
||||||
#define WIDGETS_MISC_WIDGET_H
|
#define WIDGETS_MISC_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_LAND_INFO. */
|
/** Widgets of the #LandInfoWindow class. */
|
||||||
enum LandInfoWidgets {
|
enum LandInfoWidgets {
|
||||||
WID_LI_BACKGROUND, ///< Background of the window.
|
WID_LI_BACKGROUND, ///< Background of the window.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_TOOLTIPS. */
|
/** Widgets of the #TooltipsWindow class. */
|
||||||
enum ToolTipsWidgets {
|
enum ToolTipsWidgets {
|
||||||
WID_TT_BACKGROUND, ///< Background of the window.
|
WID_TT_BACKGROUND, ///< Background of the window.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_GAME_OPTIONS (WC_GAME_OPTIONS is also used in others). */
|
/** Widgets of the #AboutWindow class. */
|
||||||
enum AboutWidgets {
|
enum AboutWidgets {
|
||||||
WID_A_SCROLLING_TEXT, ///< The actually scrolling text.
|
WID_A_SCROLLING_TEXT, ///< The actually scrolling text.
|
||||||
WID_A_WEBSITE, ///< URL of OpenTTD website.
|
WID_A_WEBSITE, ///< URL of OpenTTD website.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_QUERY_STRING (WC_QUERY_STRING is also used in QueryEditSignWidgets). */
|
/** Widgets of the #QueryStringWindow class. */
|
||||||
enum QueryStringWidgets {
|
enum QueryStringWidgets {
|
||||||
WID_QS_CAPTION, ///< Caption of the window.
|
WID_QS_CAPTION, ///< Caption of the window.
|
||||||
WID_QS_TEXT, ///< Text of the query.
|
WID_QS_TEXT, ///< Text of the query.
|
||||||
|
@ -37,7 +37,7 @@ enum QueryStringWidgets {
|
||||||
WID_QS_OK, ///< OK button.
|
WID_QS_OK, ///< OK button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_CONFIRM_POPUP_QUERY (WC_CONFIRM_POPUP_QUERY is also used in BootstrapAskForDownloadWidgets). */
|
/** Widgets of the #QueryWindow class. */
|
||||||
enum QueryWidgets {
|
enum QueryWidgets {
|
||||||
WID_Q_CAPTION, ///< Caption of the window.
|
WID_Q_CAPTION, ///< Caption of the window.
|
||||||
WID_Q_TEXT, ///< Text of the query.
|
WID_Q_TEXT, ///< Text of the query.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_MUSIC_WIDGET_H
|
#ifndef WIDGETS_MUSIC_WIDGET_H
|
||||||
#define WIDGETS_MUSIC_WIDGET_H
|
#define WIDGETS_MUSIC_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_MUSIC_TRACK_SELECTION. */
|
/** Widgets of the #MusicTrackSelectionWindow class. */
|
||||||
enum MusicTrackSelectionWidgets {
|
enum MusicTrackSelectionWidgets {
|
||||||
WID_MTS_LIST_LEFT, ///< Left button.
|
WID_MTS_LIST_LEFT, ///< Left button.
|
||||||
WID_MTS_PLAYLIST, ///< Playlist.
|
WID_MTS_PLAYLIST, ///< Playlist.
|
||||||
|
@ -26,7 +26,7 @@ enum MusicTrackSelectionWidgets {
|
||||||
WID_MTS_CLEAR, ///< Clear button.
|
WID_MTS_CLEAR, ///< Clear button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_MUSIC_WINDOW. */
|
/** Widgets of the #MusicWindow class. */
|
||||||
enum MusicWidgets {
|
enum MusicWidgets {
|
||||||
WID_M_PREV, ///< Previous button.
|
WID_M_PREV, ///< Previous button.
|
||||||
WID_M_NEXT, ///< Next button.
|
WID_M_NEXT, ///< Next button.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_NETWORK_CHAT_WIDGET_H
|
#ifndef WIDGETS_NETWORK_CHAT_WIDGET_H
|
||||||
#define WIDGETS_NETWORK_CHAT_WIDGET_H
|
#define WIDGETS_NETWORK_CHAT_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_SEND_NETWORK_MSG. */
|
/** Widgets of the #NetworkChatWindow class. */
|
||||||
enum NetWorkChatWidgets {
|
enum NetWorkChatWidgets {
|
||||||
WID_NC_CLOSE, ///< Close button.
|
WID_NC_CLOSE, ///< Close button.
|
||||||
WID_NC_BACKGROUND, ///< Background of the window.
|
WID_NC_BACKGROUND, ///< Background of the window.
|
||||||
|
|
|
@ -12,13 +12,13 @@
|
||||||
#ifndef WIDGETS_NETWORK_CONTENT_WIDGET_H
|
#ifndef WIDGETS_NETWORK_CONTENT_WIDGET_H
|
||||||
#define WIDGETS_NETWORK_CONTENT_WIDGET_H
|
#define WIDGETS_NETWORK_CONTENT_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_NETWORK_STATUS_WINDOW (WC_NETWORK_STATUS_WINDOW is also used in NetworkJoinStatusWidgets). */
|
/** Widgets of the #NetworkContentDownloadStatusWindow class. */
|
||||||
enum NetworkContentDownloadStatusWidgets {
|
enum NetworkContentDownloadStatusWidgets {
|
||||||
WID_NCDS_BACKGROUND, ///< Background of the window.
|
WID_NCDS_BACKGROUND, ///< Background of the window.
|
||||||
WID_NCDS_CANCELOK, ///< (Optional) Cancel/OK button.
|
WID_NCDS_CANCELOK, ///< (Optional) Cancel/OK button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_NETWORK_WINDOW (WC_NETWORK_WINDOW is also used in NetworkGameWidgets, NetworkStartServerWidgets, and NetworkLobbyWidgets). */
|
/** Widgets of the #NetworkContentListWindow class. */
|
||||||
enum NetworkContentListWidgets {
|
enum NetworkContentListWidgets {
|
||||||
WID_NCL_BACKGROUND, ///< Resize button.
|
WID_NCL_BACKGROUND, ///< Resize button.
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_NETWORK_WIDGET_H
|
#ifndef WIDGETS_NETWORK_WIDGET_H
|
||||||
#define WIDGETS_NETWORK_WIDGET_H
|
#define WIDGETS_NETWORK_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_NETWORK_WINDOW (WC_NETWORK_WINDOW is also used in NetworkContentListWidgets, NetworkStartServerWidgets, and NetworkLobbyWidgets). */
|
/** Widgets of the #NetworkGameWindow class. */
|
||||||
enum NetworkGameWidgets {
|
enum NetworkGameWidgets {
|
||||||
WID_NG_MAIN, ///< Main panel.
|
WID_NG_MAIN, ///< Main panel.
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ enum NetworkGameWidgets {
|
||||||
WID_NG_CANCEL, ///< 'Cancel' button.
|
WID_NG_CANCEL, ///< 'Cancel' button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_NETWORK_WINDOW (WC_NETWORK_WINDOW is also used in NetworkContentListWidgets, NetworkGameWidgets, and NetworkLobbyWidgets). */
|
/** Widgets of the #NetworkStartServerWindow class. */
|
||||||
enum NetworkStartServerWidgets {
|
enum NetworkStartServerWidgets {
|
||||||
WID_NSS_BACKGROUND, ///< Background of the window.
|
WID_NSS_BACKGROUND, ///< Background of the window.
|
||||||
WID_NSS_GAMENAME_LABEL, ///< Label for the game name.
|
WID_NSS_GAMENAME_LABEL, ///< Label for the game name.
|
||||||
|
@ -83,7 +83,7 @@ enum NetworkStartServerWidgets {
|
||||||
WID_NSS_CANCEL, ///< 'Cancel' button.
|
WID_NSS_CANCEL, ///< 'Cancel' button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_NETWORK_WINDOW (WC_NETWORK_WINDOW is also used in NetworkContentListWidgets, NetworkGameWidgets, and NetworkStartServerWidgets). */
|
/** Widgets of the #NetworkLobbyWindow class. */
|
||||||
enum NetworkLobbyWidgets {
|
enum NetworkLobbyWidgets {
|
||||||
WID_NL_BACKGROUND, ///< Background of the window.
|
WID_NL_BACKGROUND, ///< Background of the window.
|
||||||
WID_NL_TEXT, ///< Heading text.
|
WID_NL_TEXT, ///< Heading text.
|
||||||
|
@ -98,23 +98,23 @@ enum NetworkLobbyWidgets {
|
||||||
WID_NL_CANCEL, ///< 'Cancel' button.
|
WID_NL_CANCEL, ///< 'Cancel' button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_CLIENT_LIST. */
|
/** Widgets of the #NetworkClientListWindow class. */
|
||||||
enum ClientListWidgets {
|
enum ClientListWidgets {
|
||||||
WID_CL_PANEL, ///< Panel of the window.
|
WID_CL_PANEL, ///< Panel of the window.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_CLIENT_LIST_POPUP. */
|
/** Widgets of the #NetworkClientListPopupWindow class. */
|
||||||
enum ClientListPopupWidgets {
|
enum ClientListPopupWidgets {
|
||||||
WID_CLP_PANEL, ///< Panel of the window.
|
WID_CLP_PANEL, ///< Panel of the window.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_NETWORK_STATUS_WINDOW (WC_NETWORK_STATUS_WINDOW is also used in NetworkContentDownloadStatusWidgets). */
|
/** Widgets of the #NetworkJoinStatusWindow class. */
|
||||||
enum NetworkJoinStatusWidgets {
|
enum NetworkJoinStatusWidgets {
|
||||||
WID_NJS_BACKGROUND, ///< Background of the window.
|
WID_NJS_BACKGROUND, ///< Background of the window.
|
||||||
WID_NJS_CANCELOK, ///< Cancel / OK button.
|
WID_NJS_CANCELOK, ///< Cancel / OK button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_COMPANY_PASSWORD_WINDOW. */
|
/** Widgets of the #NetworkCompanyPasswordWindow class. */
|
||||||
enum NetworkCompanyPasswordWidgets {
|
enum NetworkCompanyPasswordWidgets {
|
||||||
WID_NCP_BACKGROUND, ///< Background of the window.
|
WID_NCP_BACKGROUND, ///< Background of the window.
|
||||||
WID_NCP_LABEL, ///< Label in front of the password field.
|
WID_NCP_LABEL, ///< Label in front of the password field.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_NEWGRF_DEBUG_WIDGET_H
|
#ifndef WIDGETS_NEWGRF_DEBUG_WIDGET_H
|
||||||
#define WIDGETS_NEWGRF_DEBUG_WIDGET_H
|
#define WIDGETS_NEWGRF_DEBUG_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_NEWGRF_INSPECT. */
|
/** Widgets of the #NewGRFInspectWindow class. */
|
||||||
enum NewGRFInspectWidgets {
|
enum NewGRFInspectWidgets {
|
||||||
WID_NGRFI_CAPTION, ///< The caption bar of course.
|
WID_NGRFI_CAPTION, ///< The caption bar of course.
|
||||||
WID_NGRFI_PARENT, ///< Inspect the parent.
|
WID_NGRFI_PARENT, ///< Inspect the parent.
|
||||||
|
@ -20,7 +20,7 @@ enum NewGRFInspectWidgets {
|
||||||
WID_NGRFI_SCROLLBAR, ///< Scrollbar.
|
WID_NGRFI_SCROLLBAR, ///< Scrollbar.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_SPRITE_ALIGNER. */
|
/** Widgets of the #SpriteAlignerWindow class. */
|
||||||
enum SpriteAlignerWidgets {
|
enum SpriteAlignerWidgets {
|
||||||
WID_SA_CAPTION, ///< Caption of the window.
|
WID_SA_CAPTION, ///< Caption of the window.
|
||||||
WID_SA_PREVIOUS, ///< Skip to the previous sprite.
|
WID_SA_PREVIOUS, ///< Skip to the previous sprite.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
#include "../newgrf_config.h"
|
#include "../newgrf_config.h"
|
||||||
|
|
||||||
/** Widgets of the WC_GRF_PARAMETERS. */
|
/** Widgets of the #NewGRFParametersWindow class. */
|
||||||
enum NewGRFParametersWidgets {
|
enum NewGRFParametersWidgets {
|
||||||
WID_NP_SHOW_NUMPAR, ///< #NWID_SELECTION to optionally display #WID_NP_NUMPAR.
|
WID_NP_SHOW_NUMPAR, ///< #NWID_SELECTION to optionally display #WID_NP_NUMPAR.
|
||||||
WID_NP_NUMPAR_DEC, ///< Button to decrease number of parameters.
|
WID_NP_NUMPAR_DEC, ///< Button to decrease number of parameters.
|
||||||
|
@ -29,7 +29,7 @@ enum NewGRFParametersWidgets {
|
||||||
WID_NP_DESCRIPTION, ///< Multi-line description of a parameter.
|
WID_NP_DESCRIPTION, ///< Multi-line description of a parameter.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_NEWGRF_TEXTFILE. */
|
/** Widgets of the #NewGRFTextfileWindow class. */
|
||||||
enum NewGRFTextfileWidgets {
|
enum NewGRFTextfileWidgets {
|
||||||
WID_NT_CAPTION, ///< The caption of the window.
|
WID_NT_CAPTION, ///< The caption of the window.
|
||||||
WID_NT_BACKGROUND, ///< Panel to draw the textfile on.
|
WID_NT_BACKGROUND, ///< Panel to draw the textfile on.
|
||||||
|
@ -37,7 +37,7 @@ enum NewGRFTextfileWidgets {
|
||||||
WID_NT_HSCROLLBAR, ///< Horizontal scrollbar to scroll through the textfile left-to-right.
|
WID_NT_HSCROLLBAR, ///< Horizontal scrollbar to scroll through the textfile left-to-right.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_GAME_OPTIONS (WC_GAME_OPTIONS is also used in others). */
|
/** Widgets of the #NewGRFWindow class. */
|
||||||
enum NewGRFStateWidgets {
|
enum NewGRFStateWidgets {
|
||||||
WID_NS_PRESET_LIST, ///< Active NewGRF preset.
|
WID_NS_PRESET_LIST, ///< Active NewGRF preset.
|
||||||
WID_NS_PRESET_SAVE, ///< Save list of active NewGRFs as presets.
|
WID_NS_PRESET_SAVE, ///< Save list of active NewGRFs as presets.
|
||||||
|
@ -66,7 +66,7 @@ enum NewGRFStateWidgets {
|
||||||
WID_NS_SHOW_APPLY, ///< Select display of the buttons below the 'details'.
|
WID_NS_SHOW_APPLY, ///< Select display of the buttons below the 'details'.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_MODAL_PROGRESS (WC_MODAL_PROGRESS is also used in GenerationProgressWidgets). */
|
/** Widgets of the #ScanProgressWindow class. */
|
||||||
enum ScanProgressWidgets {
|
enum ScanProgressWidgets {
|
||||||
WID_SP_PROGRESS_BAR, ///< Simple progress bar.
|
WID_SP_PROGRESS_BAR, ///< Simple progress bar.
|
||||||
WID_SP_PROGRESS_TEXT, ///< Text explaining what is happening.
|
WID_SP_PROGRESS_TEXT, ///< Text explaining what is happening.
|
||||||
|
|
|
@ -14,20 +14,7 @@
|
||||||
|
|
||||||
#include "../news_type.h"
|
#include "../news_type.h"
|
||||||
|
|
||||||
/** Constants in the message options window. */
|
/** Widgets of the #NewsWindow class. */
|
||||||
enum MessageOptionsSpace {
|
|
||||||
MOS_WIDG_PER_SETTING = 4, ///< Number of widgets needed for each news category, starting at widget #WID_MO_START_OPTION.
|
|
||||||
|
|
||||||
MOS_LEFT_EDGE = 6, ///< Number of pixels between left edge of the window and the options buttons column.
|
|
||||||
MOS_COLUMN_SPACING = 4, ///< Number of pixels between the buttons and the description columns.
|
|
||||||
MOS_RIGHT_EDGE = 6, ///< Number of pixels between right edge of the window and the options descriptions column.
|
|
||||||
MOS_BUTTON_SPACE = 10, ///< Additional space in the button with the option value (for better looks).
|
|
||||||
|
|
||||||
MOS_ABOVE_GLOBAL_SETTINGS = 6, ///< Number of vertical pixels between the categories and the global options.
|
|
||||||
MOS_BOTTOM_EDGE = 6, ///< Number of pixels between bottom edge of the window and bottom of the global options.
|
|
||||||
};
|
|
||||||
|
|
||||||
/** Widgets of the WC_NEWS_WINDOW. */
|
|
||||||
enum NewsWidgets {
|
enum NewsWidgets {
|
||||||
WID_N_PANEL, ///< Panel of the window.
|
WID_N_PANEL, ///< Panel of the window.
|
||||||
WID_N_TITLE, ///< Title of the company news.
|
WID_N_TITLE, ///< Title of the company news.
|
||||||
|
@ -48,14 +35,14 @@ enum NewsWidgets {
|
||||||
WID_N_VEH_INFO, ///< Some technical data of the new vehicle.
|
WID_N_VEH_INFO, ///< Some technical data of the new vehicle.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_MESSAGE_HISTORY. */
|
/** Widgets of the #MessageHistoryWindow class. */
|
||||||
enum MessageHistoryWidgets {
|
enum MessageHistoryWidgets {
|
||||||
WID_MH_STICKYBOX, ///< Stickybox.
|
WID_MH_STICKYBOX, ///< Stickybox.
|
||||||
WID_MH_BACKGROUND, ///< Background of the window.
|
WID_MH_BACKGROUND, ///< Background of the window.
|
||||||
WID_MH_SCROLLBAR, ///< Scrollbar for the list.
|
WID_MH_SCROLLBAR, ///< Scrollbar for the list.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_GAME_OPTIONS (WC_GAME_OPTIONS is also used in others). */
|
/** Widgets of the #MessageOptionsWindow class. */
|
||||||
enum MessageOptionWidgets {
|
enum MessageOptionWidgets {
|
||||||
WID_MO_BACKGROUND, ///< Background of the window.
|
WID_MO_BACKGROUND, ///< Background of the window.
|
||||||
WID_MO_LABEL, ///< Top label.
|
WID_MO_LABEL, ///< Top label.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_OBJECT_WIDGET_H
|
#ifndef WIDGETS_OBJECT_WIDGET_H
|
||||||
#define WIDGETS_OBJECT_WIDGET_H
|
#define WIDGETS_OBJECT_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_BUILD_OBJECT. */
|
/** Widgets of the #BuildObjectWindow class. */
|
||||||
enum BuildObjectWidgets {
|
enum BuildObjectWidgets {
|
||||||
WID_BO_CLASS_LIST, ///< The list with classes.
|
WID_BO_CLASS_LIST, ///< The list with classes.
|
||||||
WID_BO_SCROLLBAR, ///< The scrollbar associated with the list.
|
WID_BO_SCROLLBAR, ///< The scrollbar associated with the list.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_ORDER_WIDGET_H
|
#ifndef WIDGETS_ORDER_WIDGET_H
|
||||||
#define WIDGETS_ORDER_WIDGET_H
|
#define WIDGETS_ORDER_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_VEHICLE_ORDERS. */
|
/** Widgets of the #OrdersWindow class. */
|
||||||
enum OrderWidgets {
|
enum OrderWidgets {
|
||||||
WID_O_CAPTION, ///< Caption of the window.
|
WID_O_CAPTION, ///< Caption of the window.
|
||||||
WID_O_TIMETABLE_VIEW, ///< Toggle timetable view.
|
WID_O_TIMETABLE_VIEW, ///< Toggle timetable view.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_OSK_WIDGET_H
|
#ifndef WIDGETS_OSK_WIDGET_H
|
||||||
#define WIDGETS_OSK_WIDGET_H
|
#define WIDGETS_OSK_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_OSK. */
|
/** Widgets of the #OskWindow class. */
|
||||||
enum OnScreenKeyboardWidgets {
|
enum OnScreenKeyboardWidgets {
|
||||||
WID_OSK_CAPTION, ///< Caption of window.
|
WID_OSK_CAPTION, ///< Caption of window.
|
||||||
WID_OSK_TEXT, ///< Edit box.
|
WID_OSK_TEXT, ///< Edit box.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_RAIL_WIDGET_H
|
#ifndef WIDGETS_RAIL_WIDGET_H
|
||||||
#define WIDGETS_RAIL_WIDGET_H
|
#define WIDGETS_RAIL_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_BUILD_TOOLBAR (WC_BUILD_TOOLBAR is also used in others). */
|
/** Widgets of the #BuildRailToolbarWindow ckass. */
|
||||||
enum RailToolbarWidgets {
|
enum RailToolbarWidgets {
|
||||||
/* Name starts with RA instead of R, because of collision with RoadToolbarWidgets */
|
/* Name starts with RA instead of R, because of collision with RoadToolbarWidgets */
|
||||||
WID_RAT_CAPTION, ///< Caption of the window.
|
WID_RAT_CAPTION, ///< Caption of the window.
|
||||||
|
@ -32,7 +32,7 @@ enum RailToolbarWidgets {
|
||||||
WID_RAT_CONVERT_RAIL, ///< Convert other rail to this type.
|
WID_RAT_CONVERT_RAIL, ///< Convert other rail to this type.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_BUILD_STATION (WC_BUILD_STATION is also used in others). */
|
/** Widgets of the #BuildRailStationWindow class. */
|
||||||
enum BuildRailStationWidgets {
|
enum BuildRailStationWidgets {
|
||||||
/* Name starts with BRA instead of BR, because of collision with BuildRoadStationWidgets */
|
/* Name starts with BRA instead of BR, because of collision with BuildRoadStationWidgets */
|
||||||
WID_BRAS_PLATFORM_DIR_X, ///< Button to select '/' view.
|
WID_BRAS_PLATFORM_DIR_X, ///< Button to select '/' view.
|
||||||
|
@ -75,7 +75,7 @@ enum BuildRailStationWidgets {
|
||||||
WID_BRAS_PLATFORM_LEN_BEGIN = WID_BRAS_PLATFORM_LEN_1 - 1, ///< Helper for determining the chosen platform length.
|
WID_BRAS_PLATFORM_LEN_BEGIN = WID_BRAS_PLATFORM_LEN_1 - 1, ///< Helper for determining the chosen platform length.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_BUILD_SIGNAL. */
|
/** Widgets of the #BuildSignalWindow class. */
|
||||||
enum BuildSignalWidgets {
|
enum BuildSignalWidgets {
|
||||||
WID_BS_SEMAPHORE_NORM, ///< Build a semaphore normal block signal
|
WID_BS_SEMAPHORE_NORM, ///< Build a semaphore normal block signal
|
||||||
WID_BS_SEMAPHORE_ENTRY, ///< Build a semaphore entry block signal
|
WID_BS_SEMAPHORE_ENTRY, ///< Build a semaphore entry block signal
|
||||||
|
@ -95,7 +95,7 @@ enum BuildSignalWidgets {
|
||||||
WID_BS_DRAG_SIGNALS_DENSITY_INCREASE, ///< Increase the signal density.
|
WID_BS_DRAG_SIGNALS_DENSITY_INCREASE, ///< Increase the signal density.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_BUILD_DEPOT (WC_BUILD_DEPOT is also used in others). */
|
/** Widgets of the #BuildRailDepotWindow class. */
|
||||||
enum BuildRailDepotWidgets {
|
enum BuildRailDepotWidgets {
|
||||||
/* Name starts with BRA instead of BR, because of collision with BuildRoadDepotWidgets */
|
/* Name starts with BRA instead of BR, because of collision with BuildRoadDepotWidgets */
|
||||||
WID_BRAD_DEPOT_NE, ///< Build a depot with the entrace in the north east.
|
WID_BRAD_DEPOT_NE, ///< Build a depot with the entrace in the north east.
|
||||||
|
@ -104,7 +104,7 @@ enum BuildRailDepotWidgets {
|
||||||
WID_BRAD_DEPOT_NW, ///< Build a depot with the entrace in the north west.
|
WID_BRAD_DEPOT_NW, ///< Build a depot with the entrace in the north west.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_BUILD_DEPOT (WC_BUILD_DEPOT is also used in others). */
|
/** Widgets of the #BuildRailWaypointWindow class. */
|
||||||
enum BuildRailWaypointWidgets {
|
enum BuildRailWaypointWidgets {
|
||||||
WID_BRW_WAYPOINT_MATRIX, ///< Matrix with waypoints.
|
WID_BRW_WAYPOINT_MATRIX, ///< Matrix with waypoints.
|
||||||
WID_BRW_WAYPOINT, ///< A single waypoint.
|
WID_BRW_WAYPOINT, ///< A single waypoint.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_ROAD_WIDGET_H
|
#ifndef WIDGETS_ROAD_WIDGET_H
|
||||||
#define WIDGETS_ROAD_WIDGET_H
|
#define WIDGETS_ROAD_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_SCEN_BUILD_TOOLBAR / WC_BUILD_TOOLBAR (WC_SCEN_BUILD_TOOLBAR / WC_BUILD_TOOLBAR is also used in others). */
|
/** Widgets of the #BuildRoadToolbarWindow class. */
|
||||||
enum RoadToolbarWidgets {
|
enum RoadToolbarWidgets {
|
||||||
/* Name starts with RO instead of R, because of collision with RailToolbarWidgets */
|
/* Name starts with RO instead of R, because of collision with RailToolbarWidgets */
|
||||||
WID_ROT_ROAD_X, ///< Build road in x-direction.
|
WID_ROT_ROAD_X, ///< Build road in x-direction.
|
||||||
|
@ -28,7 +28,7 @@ enum RoadToolbarWidgets {
|
||||||
WID_ROT_REMOVE, ///< Remove road.
|
WID_ROT_REMOVE, ///< Remove road.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_BUILD_DEPOT (WC_BUILD_DEPOT is also used in others). */
|
/** Widgets of the #BuildRoadDepotWindow class. */
|
||||||
enum BuildRoadDepotWidgets {
|
enum BuildRoadDepotWidgets {
|
||||||
/* Name starts with BRO instead of BR, because of collision with BuildRailDepotWidgets */
|
/* Name starts with BRO instead of BR, because of collision with BuildRailDepotWidgets */
|
||||||
WID_BROD_CAPTION, ///< Caption of the window.
|
WID_BROD_CAPTION, ///< Caption of the window.
|
||||||
|
@ -38,7 +38,7 @@ enum BuildRoadDepotWidgets {
|
||||||
WID_BROD_DEPOT_NW, ///< Depot with NW entry.
|
WID_BROD_DEPOT_NW, ///< Depot with NW entry.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_BUS_STATION / WC_TRUCK_STATION. */
|
/** Widgets of the #BuildRoadStationWindow class. */
|
||||||
enum BuildRoadStationWidgets {
|
enum BuildRoadStationWidgets {
|
||||||
/* Name starts with BRO instead of BR, because of collision with BuildRailStationWidgets */
|
/* Name starts with BRO instead of BR, because of collision with BuildRailStationWidgets */
|
||||||
WID_BROS_CAPTION, ///< Caption of the window.
|
WID_BROS_CAPTION, ///< Caption of the window.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_SETTINGS_WIDGET_H
|
#ifndef WIDGETS_SETTINGS_WIDGET_H
|
||||||
#define WIDGETS_SETTINGS_WIDGET_H
|
#define WIDGETS_SETTINGS_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_GAME_OPTIONS (WC_GAME_OPTIONS is also used in others). */
|
/** Widgets of the #GameOptionsWindow class. */
|
||||||
enum GameOptionsWidgets {
|
enum GameOptionsWidgets {
|
||||||
WID_GO_BACKGROUND, ///< Background of the window.
|
WID_GO_BACKGROUND, ///< Background of the window.
|
||||||
WID_GO_CURRENCY_DROPDOWN, ///< Currency dropdown.
|
WID_GO_CURRENCY_DROPDOWN, ///< Currency dropdown.
|
||||||
|
@ -34,7 +34,7 @@ enum GameOptionsWidgets {
|
||||||
WID_GO_BASE_MUSIC_DESCRIPTION, ///< Description of selected base music set.
|
WID_GO_BASE_MUSIC_DESCRIPTION, ///< Description of selected base music set.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_GAME_OPTIONS (WC_GAME_OPTIONS is also used in others). */
|
/** Widgets of the #GameDifficultyWindow class. */
|
||||||
enum GameDifficultyWidgets {
|
enum GameDifficultyWidgets {
|
||||||
WID_GD_LVL_EASY, ///< Easy level button.
|
WID_GD_LVL_EASY, ///< Easy level button.
|
||||||
WID_GD_LVL_MEDIUM, ///< Medium level button.
|
WID_GD_LVL_MEDIUM, ///< Medium level button.
|
||||||
|
@ -47,13 +47,13 @@ enum GameDifficultyWidgets {
|
||||||
WID_GD_OPTIONS_START, ///< Start of the options.
|
WID_GD_OPTIONS_START, ///< Start of the options.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_GAME_OPTIONS (WC_GAME_OPTIONS is also used in others). */
|
/** Widgets of the #GameSettingsWindow class. */
|
||||||
enum GameSettingsWidgets {
|
enum GameSettingsWidgets {
|
||||||
WID_GS_OPTIONSPANEL, ///< Panel widget containing the option lists.
|
WID_GS_OPTIONSPANEL, ///< Panel widget containing the option lists.
|
||||||
WID_GS_SCROLLBAR, ///< Scrollbar.
|
WID_GS_SCROLLBAR, ///< Scrollbar.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_CUSTOM_CURRENCY. */
|
/** Widgets of the #CustomCurrencyWindow class. */
|
||||||
enum CustomCurrencyWidgets {
|
enum CustomCurrencyWidgets {
|
||||||
WID_CC_RATE_DOWN, ///< Down button.
|
WID_CC_RATE_DOWN, ///< Down button.
|
||||||
WID_CC_RATE_UP, ///< Up button.
|
WID_CC_RATE_UP, ///< Up button.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_SIGN_WIDGET_H
|
#ifndef WIDGETS_SIGN_WIDGET_H
|
||||||
#define WIDGETS_SIGN_WIDGET_H
|
#define WIDGETS_SIGN_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_SIGN_LIST. */
|
/** Widgets of the #SignListWindow class. */
|
||||||
enum SignListWidgets {
|
enum SignListWidgets {
|
||||||
/* Name starts with SI instead of S, because of collision with SaveLoadWidgets */
|
/* Name starts with SI instead of S, because of collision with SaveLoadWidgets */
|
||||||
WID_SIL_CAPTION, ///< Caption of the window.
|
WID_SIL_CAPTION, ///< Caption of the window.
|
||||||
|
@ -23,7 +23,7 @@ enum SignListWidgets {
|
||||||
WID_SIL_FILTER_CLEAR_BTN, ///< Button to clear the filter.
|
WID_SIL_FILTER_CLEAR_BTN, ///< Button to clear the filter.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_QUERY_STRING (WC_QUERY_STRING is also used in QueryStringWidgets). */
|
/** Widgets of the #SignWindow class. */
|
||||||
enum QueryEditSignWidgets {
|
enum QueryEditSignWidgets {
|
||||||
WID_QES_CAPTION, ///< Caption of the window.
|
WID_QES_CAPTION, ///< Caption of the window.
|
||||||
WID_QES_TEXT, ///< Text of the query.
|
WID_QES_TEXT, ///< Text of the query.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_SMALLMAP_WIDGET_H
|
#ifndef WIDGETS_SMALLMAP_WIDGET_H
|
||||||
#define WIDGETS_SMALLMAP_WIDGET_H
|
#define WIDGETS_SMALLMAP_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_SMALLMAP. */
|
/** Widgets of the #SmallMapWindow class. */
|
||||||
enum SmallMapWidgets {
|
enum SmallMapWidgets {
|
||||||
WID_SM_CAPTION, ///< Caption of the window.
|
WID_SM_CAPTION, ///< Caption of the window.
|
||||||
WID_SM_MAP_BORDER, ///< Border around the smallmap.
|
WID_SM_MAP_BORDER, ///< Border around the smallmap.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_STATION_WIDGET_H
|
#ifndef WIDGETS_STATION_WIDGET_H
|
||||||
#define WIDGETS_STATION_WIDGET_H
|
#define WIDGETS_STATION_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_STATION_VIEW. */
|
/** Widgets of the #StationViewWindow class. */
|
||||||
enum StationViewWidgets {
|
enum StationViewWidgets {
|
||||||
WID_SV_CAPTION, ///< Caption of the window.
|
WID_SV_CAPTION, ///< Caption of the window.
|
||||||
WID_SV_WAITING, ///< List of waiting cargo.
|
WID_SV_WAITING, ///< List of waiting cargo.
|
||||||
|
@ -27,7 +27,7 @@ enum StationViewWidgets {
|
||||||
WID_SV_PLANES, ///< List of scheduled planes button.
|
WID_SV_PLANES, ///< List of scheduled planes button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_STATION_LIST. */
|
/** Widgets of the #CompanyStationsWindow class. */
|
||||||
enum StationListWidgets {
|
enum StationListWidgets {
|
||||||
/* Name starts with ST instead of S, because of collision with SaveLoadWidgets */
|
/* Name starts with ST instead of S, because of collision with SaveLoadWidgets */
|
||||||
WID_STL_CAPTION, ///< Caption of the window.
|
WID_STL_CAPTION, ///< Caption of the window.
|
||||||
|
@ -51,7 +51,7 @@ enum StationListWidgets {
|
||||||
WID_STL_CARGOSTART, ///< Widget numbers used for list of cargo types (not present in _company_stations_widgets).
|
WID_STL_CARGOSTART, ///< Widget numbers used for list of cargo types (not present in _company_stations_widgets).
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_SELECT_STATION. */
|
/** Widgets of the #SelectStationWindow class. */
|
||||||
enum JoinStationWidgets {
|
enum JoinStationWidgets {
|
||||||
WID_JS_CAPTION, // Caption of the window.
|
WID_JS_CAPTION, // Caption of the window.
|
||||||
WID_JS_PANEL, // Main panel.
|
WID_JS_PANEL, // Main panel.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_STATUSBAR_WIDGET_H
|
#ifndef WIDGETS_STATUSBAR_WIDGET_H
|
||||||
#define WIDGETS_STATUSBAR_WIDGET_H
|
#define WIDGETS_STATUSBAR_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_STATUS_BAR. */
|
/** Widgets of the #StatusBarWindow class. */
|
||||||
enum StatusbarWidget {
|
enum StatusbarWidget {
|
||||||
WID_S_LEFT, ///< Left part of the statusbar; date is shown there.
|
WID_S_LEFT, ///< Left part of the statusbar; date is shown there.
|
||||||
WID_S_MIDDLE, ///< Middle part; current news or company name or *** SAVING *** or *** PAUSED ***.
|
WID_S_MIDDLE, ///< Middle part; current news or company name or *** SAVING *** or *** PAUSED ***.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_SUBSIDY_WIDGET_H
|
#ifndef WIDGETS_SUBSIDY_WIDGET_H
|
||||||
#define WIDGETS_SUBSIDY_WIDGET_H
|
#define WIDGETS_SUBSIDY_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_SUBSIDIES_LIST. */
|
/** Widgets of the #SubsidyListWindow class. */
|
||||||
enum SubsidyListWidgets {
|
enum SubsidyListWidgets {
|
||||||
/* Name starts with SU instead of S, because of collision with SaveLoadWidgets. */
|
/* Name starts with SU instead of S, because of collision with SaveLoadWidgets. */
|
||||||
WID_SUL_PANEL, ///< Main panel of window.
|
WID_SUL_PANEL, ///< Main panel of window.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_TERRAFORM_WIDGET_H
|
#ifndef WIDGETS_TERRAFORM_WIDGET_H
|
||||||
#define WIDGETS_TERRAFORM_WIDGET_H
|
#define WIDGETS_TERRAFORM_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_SCEN_LAND_GEN (WC_SCEN_LAND_GEN is also used in EditorTerraformToolbarWidgets). */
|
/** Widgets of the #TerraformToolbarWindow class. */
|
||||||
enum TerraformToolbarWidgets {
|
enum TerraformToolbarWidgets {
|
||||||
WID_TT_SHOW_PLACE_OBJECT, ///< Should the place object button be shown?
|
WID_TT_SHOW_PLACE_OBJECT, ///< Should the place object button be shown?
|
||||||
WID_TT_BUTTONS_START, ///< Start of pushable buttons.
|
WID_TT_BUTTONS_START, ///< Start of pushable buttons.
|
||||||
|
@ -26,7 +26,7 @@ enum TerraformToolbarWidgets {
|
||||||
WID_TT_PLACE_OBJECT, ///< Place object button.
|
WID_TT_PLACE_OBJECT, ///< Place object button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_SCEN_LAND_GEN (WC_SCEN_LAND_GEN is also used in TerraformToolbarWidgets). */
|
/** Widgets of the #ScenarioEditorLandscapeGenerationWindow class. */
|
||||||
enum EditorTerraformToolbarWidgets {
|
enum EditorTerraformToolbarWidgets {
|
||||||
WID_ETT_SHOW_PLACE_DESERT, ///< Should the place desert button be shown?
|
WID_ETT_SHOW_PLACE_DESERT, ///< Should the place desert button be shown?
|
||||||
WID_ETT_START, ///< Used for iterations.
|
WID_ETT_START, ///< Used for iterations.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_TIMETABLE_WIDGET_H
|
#ifndef WIDGETS_TIMETABLE_WIDGET_H
|
||||||
#define WIDGETS_TIMETABLE_WIDGET_H
|
#define WIDGETS_TIMETABLE_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_VEHICLE_TIMETABLE. */
|
/** Widgets of the #TimetableWindow class. */
|
||||||
enum VehicleTimetableWidgets {
|
enum VehicleTimetableWidgets {
|
||||||
WID_VT_CAPTION, ///< Caption of the window.
|
WID_VT_CAPTION, ///< Caption of the window.
|
||||||
WID_VT_ORDER_VIEW, ///< Order view.
|
WID_VT_ORDER_VIEW, ///< Order view.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_TOOLBAR_WIDGET_H
|
#ifndef WIDGETS_TOOLBAR_WIDGET_H
|
||||||
#define WIDGETS_TOOLBAR_WIDGET_H
|
#define WIDGETS_TOOLBAR_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_MAIN_TOOLBAR, when in normal game mode. */
|
/** Widgets of the #MainToolbarWindow class. */
|
||||||
enum ToolbarNormalWidgets {
|
enum ToolbarNormalWidgets {
|
||||||
WID_TN_PAUSE, ///< Pause the game.
|
WID_TN_PAUSE, ///< Pause the game.
|
||||||
WID_TN_FAST_FORWARD, ///< Fast forward the game.
|
WID_TN_FAST_FORWARD, ///< Fast forward the game.
|
||||||
|
@ -46,7 +46,7 @@ enum ToolbarNormalWidgets {
|
||||||
WID_TN_END, ///< Helper for knowing the amount of widgets.
|
WID_TN_END, ///< Helper for knowing the amount of widgets.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_MAIN_TOOLBAR, when in scenario editor. */
|
/** Widgets of the #ScenarioEditorToolbarWindow class. */
|
||||||
enum ToolbarEditorWidgets {
|
enum ToolbarEditorWidgets {
|
||||||
WID_TE_PAUSE, ///< Pause the game.
|
WID_TE_PAUSE, ///< Pause the game.
|
||||||
WID_TE_FAST_FORWARD, ///< Fast forward the game.
|
WID_TE_FAST_FORWARD, ///< Fast forward the game.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_TOWN_WIDGET_H
|
#ifndef WIDGETS_TOWN_WIDGET_H
|
||||||
#define WIDGETS_TOWN_WIDGET_H
|
#define WIDGETS_TOWN_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_TOWN_DIRECTORY. */
|
/** Widgets of the #TownDirectoryWindow class. */
|
||||||
enum TownDirectoryWidgets {
|
enum TownDirectoryWidgets {
|
||||||
WID_TD_SORT_NAME, ///< Sort by town name.
|
WID_TD_SORT_NAME, ///< Sort by town name.
|
||||||
WID_TD_SORT_POPULATION, ///< Sort by town population.
|
WID_TD_SORT_POPULATION, ///< Sort by town population.
|
||||||
|
@ -21,7 +21,7 @@ enum TownDirectoryWidgets {
|
||||||
WID_TD_WORLD_POPULATION, ///< The world's population.
|
WID_TD_WORLD_POPULATION, ///< The world's population.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_TOWN_AUTHORITY. */
|
/** Widgets of the #TownAuthorityWindow class. */
|
||||||
enum TownAuthorityWidgets {
|
enum TownAuthorityWidgets {
|
||||||
WID_TA_CAPTION, ///< Caption of window.
|
WID_TA_CAPTION, ///< Caption of window.
|
||||||
WID_TA_RATING_INFO, ///< Overview with ratings for each company.
|
WID_TA_RATING_INFO, ///< Overview with ratings for each company.
|
||||||
|
@ -31,7 +31,7 @@ enum TownAuthorityWidgets {
|
||||||
WID_TA_EXECUTE, ///< Do-it button.
|
WID_TA_EXECUTE, ///< Do-it button.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_TOWN_VIEW. */
|
/** Widgets of the #TownViewWindow class. */
|
||||||
enum TownViewWidgets {
|
enum TownViewWidgets {
|
||||||
WID_TV_CAPTION, ///< Caption of window.
|
WID_TV_CAPTION, ///< Caption of window.
|
||||||
WID_TV_VIEWPORT, ///< View of the center of the town.
|
WID_TV_VIEWPORT, ///< View of the center of the town.
|
||||||
|
@ -43,7 +43,7 @@ enum TownViewWidgets {
|
||||||
WID_TV_DELETE, ///< Delete this town (scenario editor only).
|
WID_TV_DELETE, ///< Delete this town (scenario editor only).
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_FOUND_TOWN. */
|
/** Widgets of the #FoundTownWindow class. */
|
||||||
enum TownFoundingWidgets {
|
enum TownFoundingWidgets {
|
||||||
WID_TF_NEW_TOWN, ///< Create a new town.
|
WID_TF_NEW_TOWN, ///< Create a new town.
|
||||||
WID_TF_RANDOM_TOWN, ///< Randomly place a town.
|
WID_TF_RANDOM_TOWN, ///< Randomly place a town.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_TRANSPARENCY_WIDGET_H
|
#ifndef WIDGETS_TRANSPARENCY_WIDGET_H
|
||||||
#define WIDGETS_TRANSPARENCY_WIDGET_H
|
#define WIDGETS_TRANSPARENCY_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_TRANSPARENCY_TOOLBAR. */
|
/** Widgets of the #TransparenciesWindow class. */
|
||||||
enum TransparencyToolbarWidgets {
|
enum TransparencyToolbarWidgets {
|
||||||
/* Button row. */
|
/* Button row. */
|
||||||
WID_TT_BEGIN, ///< First toggle button.
|
WID_TT_BEGIN, ///< First toggle button.
|
||||||
|
|
|
@ -12,20 +12,20 @@
|
||||||
#ifndef WIDGETS_TREE_WIDGET_H
|
#ifndef WIDGETS_TREE_WIDGET_H
|
||||||
#define WIDGETS_TREE_WIDGET_H
|
#define WIDGETS_TREE_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_BUILD_TREES. */
|
/** Widgets of the #BuildTreesWindow class. */
|
||||||
enum BuildTreesWidgets {
|
enum BuildTreesWidgets {
|
||||||
WID_BT_TYPE_11, ///< Tree 1st column 1st row.
|
WID_BT_TYPE_11, ///< Tree 1st column 1st row.
|
||||||
WID_BT_TYPE_12, ///< Tree 1st column 2nd row.
|
WID_BT_TYPE_12, ///< Tree 1st column 2nd row.
|
||||||
WID_BT_TYPE_13, ///< Tree 1st column 3rd row.
|
WID_BT_TYPE_13, ///< Tree 1st column 3rd row.
|
||||||
WID_BT_TYPE_14, ///< Tree 1st column 4th row.
|
WID_BT_TYPE_14, ///< Tree 1st column 4th row.
|
||||||
WID_BT_TYPE_21, ///< Tree 1st column 1st row.
|
WID_BT_TYPE_21, ///< Tree 2st column 1st row.
|
||||||
WID_BT_TYPE_22, ///< Tree 1st column 2nd row.
|
WID_BT_TYPE_22, ///< Tree 2st column 2nd row.
|
||||||
WID_BT_TYPE_23, ///< Tree 1st column 3rd row.
|
WID_BT_TYPE_23, ///< Tree 2st column 3rd row.
|
||||||
WID_BT_TYPE_24, ///< Tree 1st column 4th row.
|
WID_BT_TYPE_24, ///< Tree 2st column 4th row.
|
||||||
WID_BT_TYPE_31, ///< Tree 1st column 1st row.
|
WID_BT_TYPE_31, ///< Tree 3st column 1st row.
|
||||||
WID_BT_TYPE_32, ///< Tree 1st column 2nd row.
|
WID_BT_TYPE_32, ///< Tree 3st column 2nd row.
|
||||||
WID_BT_TYPE_33, ///< Tree 1st column 3rd row.
|
WID_BT_TYPE_33, ///< Tree 3st column 3rd row.
|
||||||
WID_BT_TYPE_34, ///< Tree 1st column 4th row.
|
WID_BT_TYPE_34, ///< Tree 3st column 4th row.
|
||||||
WID_BT_TYPE_RANDOM, ///< Button to build random type of tree.
|
WID_BT_TYPE_RANDOM, ///< Button to build random type of tree.
|
||||||
WID_BT_MANY_RANDOM, ///< Button to build many random trees.
|
WID_BT_MANY_RANDOM, ///< Button to build many random trees.
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_VEHICLE_WIDGET_H
|
#ifndef WIDGETS_VEHICLE_WIDGET_H
|
||||||
#define WIDGETS_VEHICLE_WIDGET_H
|
#define WIDGETS_VEHICLE_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_VEHICLE_VIEW. */
|
/** Widgets of the #VehicleViewWindow class. */
|
||||||
enum VehicleViewWidgets {
|
enum VehicleViewWidgets {
|
||||||
WID_VV_CAPTION, ///< Caption of window.
|
WID_VV_CAPTION, ///< Caption of window.
|
||||||
WID_VV_VIEWPORT, ///< Viewport widget.
|
WID_VV_VIEWPORT, ///< Viewport widget.
|
||||||
|
@ -29,7 +29,7 @@ enum VehicleViewWidgets {
|
||||||
WID_VV_FORCE_PROCEED, ///< Force this vehicle to pass a signal at danger.
|
WID_VV_FORCE_PROCEED, ///< Force this vehicle to pass a signal at danger.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_VEHICLE_REFIT. */
|
/** Widgets of the #RefitWindow class. */
|
||||||
enum VehicleRefitWidgets {
|
enum VehicleRefitWidgets {
|
||||||
WID_VR_CAPTION, ///< Caption of window.
|
WID_VR_CAPTION, ///< Caption of window.
|
||||||
WID_VR_VEHICLE_PANEL_DISPLAY, ///< Display with a representation of the vehicle to refit.
|
WID_VR_VEHICLE_PANEL_DISPLAY, ///< Display with a representation of the vehicle to refit.
|
||||||
|
@ -42,7 +42,7 @@ enum VehicleRefitWidgets {
|
||||||
WID_VR_REFIT, ///< Perform the refit.
|
WID_VR_REFIT, ///< Perform the refit.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the WC_VEHICLE_DETAILS. */
|
/** Widgets of the #VehicleDetailsWindow class. */
|
||||||
enum VehicleDetailsWidgets {
|
enum VehicleDetailsWidgets {
|
||||||
WID_VD_CAPTION, ///< Caption of window.
|
WID_VD_CAPTION, ///< Caption of window.
|
||||||
WID_VD_RENAME_VEHICLE, ///< Rename this vehicle.
|
WID_VD_RENAME_VEHICLE, ///< Rename this vehicle.
|
||||||
|
@ -59,7 +59,7 @@ enum VehicleDetailsWidgets {
|
||||||
WID_VD_DETAILS_TOTAL_CARGO, ///< Show the capacity and carried cargo amounts aggregrated per cargo of the train.
|
WID_VD_DETAILS_TOTAL_CARGO, ///< Show the capacity and carried cargo amounts aggregrated per cargo of the train.
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Widgets of the vehicle lists (WC_TRAINS_LIST, WC_ROADVEH_LIST, WC_SHIPS_LIST, WC_AIRCRAFT_LIST). */
|
/** Widgets of the #VehicleListWindow class. */
|
||||||
enum VehicleListWidgets {
|
enum VehicleListWidgets {
|
||||||
WID_VL_CAPTION, ///< Caption of window.
|
WID_VL_CAPTION, ///< Caption of window.
|
||||||
WID_VL_SORT_ORDER, ///< Sort order.
|
WID_VL_SORT_ORDER, ///< Sort order.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_VIEWPORT_WIDGET_H
|
#ifndef WIDGETS_VIEWPORT_WIDGET_H
|
||||||
#define WIDGETS_VIEWPORT_WIDGET_H
|
#define WIDGETS_VIEWPORT_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_EXTRA_VIEW_PORT. */
|
/** Widgets of the #ExtraViewportWindow class. */
|
||||||
enum ExtraViewportWidgets {
|
enum ExtraViewportWidgets {
|
||||||
WID_EV_CAPTION, ///< Caption of window.
|
WID_EV_CAPTION, ///< Caption of window.
|
||||||
WID_EV_VIEWPORT, ///< The viewport.
|
WID_EV_VIEWPORT, ///< The viewport.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef WIDGETS_WAYPOINT_WIDGET_H
|
#ifndef WIDGETS_WAYPOINT_WIDGET_H
|
||||||
#define WIDGETS_WAYPOINT_WIDGET_H
|
#define WIDGETS_WAYPOINT_WIDGET_H
|
||||||
|
|
||||||
/** Widgets of the WC_WAYPOINT_VIEW. */
|
/** Widgets of the #WaypointWindow class. */
|
||||||
enum WaypointWidgets {
|
enum WaypointWidgets {
|
||||||
WID_W_CAPTION, ///< Caption of window.
|
WID_W_CAPTION, ///< Caption of window.
|
||||||
WID_W_VIEWPORT, ///< The viewport on this waypoint.
|
WID_W_VIEWPORT, ///< The viewport on this waypoint.
|
||||||
|
|
|
@ -12,124 +12,622 @@
|
||||||
#ifndef WINDOW_TYPE_H
|
#ifndef WINDOW_TYPE_H
|
||||||
#define WINDOW_TYPE_H
|
#define WINDOW_TYPE_H
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Window classes
|
* Window classes.
|
||||||
*/
|
*/
|
||||||
enum WindowClass {
|
enum WindowClass {
|
||||||
WC_NONE, ///< No window, redirects to WC_MAIN_WINDOW.
|
WC_NONE, ///< No window, redirects to WC_MAIN_WINDOW.
|
||||||
|
|
||||||
WC_MAIN_WINDOW = WC_NONE, ///< Main window.
|
/**
|
||||||
WC_MAIN_TOOLBAR, ///< Main toolbar (the long bar at the top..
|
* Main window; Window numbers:
|
||||||
WC_STATUS_BAR, ///< Statusbar (at the bottom of your screen).
|
* - 0 = #MainWidgets
|
||||||
WC_BUILD_TOOLBAR, ///< Build toolbar.
|
*/
|
||||||
WC_SCEN_BUILD_TOOLBAR, ///< Scenario build toolbar.
|
WC_MAIN_WINDOW = WC_NONE,
|
||||||
WC_BUILD_TREES, ///< Build trees toolbar.
|
|
||||||
WC_TRANSPARENCY_TOOLBAR, ///< Transparency toolbar.
|
|
||||||
WC_BUILD_SIGNAL, ///< Build signal toolbar.
|
|
||||||
|
|
||||||
WC_SMALLMAP, ///< Small map.
|
/**
|
||||||
WC_ERRMSG, ///< Error message.
|
* Main toolbar (the long bar at the top); Window numbers:
|
||||||
WC_TOOLTIPS, ///< Tooltip window.
|
* - 0 = #ToolbarNormalWidgets
|
||||||
WC_QUERY_STRING, ///< Query string window.
|
* - 0 = #ToolbarEditorWidgets
|
||||||
WC_CONFIRM_POPUP_QUERY, ///< Popup with confirm question.
|
*/
|
||||||
WC_SAVELOAD, ///< Saveload window.
|
WC_MAIN_TOOLBAR,
|
||||||
WC_LAND_INFO, ///< Land info window.
|
|
||||||
WC_DROPDOWN_MENU, ///< Drop down menu.
|
|
||||||
WC_OSK, ///< On Screen Keyboard.
|
|
||||||
WC_SET_DATE, ///< Set date.
|
|
||||||
|
|
||||||
WC_AI_SETTINGS, ///< AI settings.
|
/**
|
||||||
WC_GRF_PARAMETERS, ///< NewGRF parameters.
|
* Statusbar (at the bottom of your screen); Window numbers:
|
||||||
WC_NEWGRF_TEXTFILE, ///< NewGRF textfile.
|
* - 0 = #StatusbarWidget
|
||||||
|
*/
|
||||||
|
WC_STATUS_BAR,
|
||||||
|
|
||||||
WC_TOWN_AUTHORITY, ///< Town authority.
|
/**
|
||||||
WC_VEHICLE_DETAILS, ///< Vehicle details.
|
* Build toolbar; Window numbers:
|
||||||
WC_VEHICLE_REFIT, ///< Vehicle refit.
|
* - 0 = #RailToolbarWidgets
|
||||||
WC_VEHICLE_ORDERS, ///< Vehicle orders.
|
* - #TRANSPORT_AIR = #AirportToolbarWidgets
|
||||||
WC_REPLACE_VEHICLE, ///< Replace vehicle window.
|
* - #TRANSPORT_WATER = #DockToolbarWidgets
|
||||||
WC_VEHICLE_TIMETABLE, ///< Vehicle timetable.
|
* - #TRANSPORT_ROAD = #RoadToolbarWidgets
|
||||||
WC_COMPANY_COLOUR, ///< Company colour selection.
|
*/
|
||||||
WC_COMPANY_MANAGER_FACE, ///< Alter company face window.
|
WC_BUILD_TOOLBAR,
|
||||||
WC_SELECT_STATION, ///< Select station (when joining stations).
|
|
||||||
|
|
||||||
WC_NEWS_WINDOW, ///< News window.
|
/**
|
||||||
WC_TOWN_DIRECTORY, ///< Town directory.
|
* Scenario build toolbar; Window numbers:
|
||||||
WC_SUBSIDIES_LIST, ///< Subsidies list.
|
* - 0 = #RoadToolbarWidgets
|
||||||
WC_INDUSTRY_DIRECTORY, ///< Industry directory.
|
* - #TRANSPORT_WATER = #DockToolbarWidgets
|
||||||
WC_MESSAGE_HISTORY, ///< News history list.
|
*/
|
||||||
WC_SIGN_LIST, ///< Sign list.
|
WC_SCEN_BUILD_TOOLBAR,
|
||||||
WC_AI_LIST, ///< AI list.
|
|
||||||
|
|
||||||
WC_STATION_LIST, ///< Station list.
|
/**
|
||||||
WC_TRAINS_LIST, ///< Trains list.
|
* Build trees toolbar; Window numbers:
|
||||||
WC_ROADVEH_LIST, ///< Road vehicle list.
|
* - 0 = #BuildTreesWidgets
|
||||||
WC_SHIPS_LIST, ///< Ships list.
|
*/
|
||||||
WC_AIRCRAFT_LIST, ///< Aircraft list.
|
WC_BUILD_TREES,
|
||||||
|
|
||||||
WC_TOWN_VIEW, ///< Town view.
|
/**
|
||||||
WC_VEHICLE_VIEW, ///< Vehicle view.
|
* Transparency toolbar; Window numbers:
|
||||||
WC_STATION_VIEW, ///< Station view.
|
* - 0 = #TransparencyToolbarWidgets
|
||||||
WC_VEHICLE_DEPOT, ///< Depot view.
|
*/
|
||||||
WC_WAYPOINT_VIEW, ///< Waypoint view.
|
WC_TRANSPARENCY_TOOLBAR,
|
||||||
WC_INDUSTRY_VIEW, ///< Industry view.
|
|
||||||
WC_COMPANY, ///< Company view.
|
|
||||||
|
|
||||||
WC_BUILD_OBJECT, ///< Build object
|
/**
|
||||||
WC_BUILD_VEHICLE, ///< Build vehicle.
|
* Build signal toolbar; Window numbers:
|
||||||
WC_BUILD_BRIDGE, ///< Build bridge.
|
* - #TRANSPORT_RAIL = #BuildSignalWidgets
|
||||||
WC_BUILD_STATION, ///< Build station.
|
*/
|
||||||
WC_BUS_STATION, ///< Build bus station.
|
WC_BUILD_SIGNAL,
|
||||||
WC_TRUCK_STATION, ///< Build truck station.
|
|
||||||
WC_BUILD_DEPOT, ///< Build depot.
|
|
||||||
WC_FOUND_TOWN, ///< Found a town.
|
|
||||||
WC_BUILD_INDUSTRY, ///< Build industry.
|
|
||||||
|
|
||||||
WC_SELECT_GAME, ///< Select game window.
|
/**
|
||||||
WC_SCEN_LAND_GEN, ///< Landscape generation (in Scenario Editor).
|
* Small map; Window numbers:
|
||||||
WC_GENERATE_LANDSCAPE, ///< Generate landscape (newgame).
|
* - 0 = #SmallMapWidgets
|
||||||
WC_MODAL_PROGRESS, ///< Progress report of landscape generation.
|
*/
|
||||||
|
WC_SMALLMAP,
|
||||||
|
|
||||||
WC_NETWORK_WINDOW, ///< Network window.
|
/**
|
||||||
WC_CLIENT_LIST, ///< Client list.
|
* Error message; Window numbers:
|
||||||
WC_CLIENT_LIST_POPUP, ///< Popup for the client list.
|
* - 0 = #ErrorMessageWidgets
|
||||||
WC_NETWORK_STATUS_WINDOW, ///< Network status window.
|
*/
|
||||||
WC_SEND_NETWORK_MSG, ///< Chatbox.
|
WC_ERRMSG,
|
||||||
WC_COMPANY_PASSWORD_WINDOW, ///< Company password query.
|
|
||||||
|
|
||||||
WC_INDUSTRY_CARGOES, ///< Industry cargoes chain.
|
/**
|
||||||
WC_GRAPH_LEGEND, ///< Legend for graphs.
|
* Tooltip window; Window numbers:
|
||||||
WC_FINANCES, ///< Finances of a company.
|
* - 0 = #ToolTipsWidgets
|
||||||
WC_INCOME_GRAPH, ///< Income graph.
|
*/
|
||||||
WC_OPERATING_PROFIT, ///< Operating profit graph.
|
WC_TOOLTIPS,
|
||||||
WC_DELIVERED_CARGO, ///< Delivered cargo graph.
|
|
||||||
WC_PERFORMANCE_HISTORY, ///< Performance history graph.
|
|
||||||
WC_COMPANY_VALUE, ///< Company value graph.
|
|
||||||
WC_COMPANY_LEAGUE, ///< Company league window.
|
|
||||||
WC_PAYMENT_RATES, ///< Payment rates graph.
|
|
||||||
WC_PERFORMANCE_DETAIL, ///< Performance detail window.
|
|
||||||
WC_COMPANY_INFRASTRUCTURE, ///< Company infrastructure overview.
|
|
||||||
|
|
||||||
WC_BUY_COMPANY, ///< Buyout company (merger).
|
/**
|
||||||
WC_ENGINE_PREVIEW, ///< Engine preview window.
|
* Query string window; Window numbers: (TODO - CONFLICT)
|
||||||
|
* - 0 = #QueryStringWidgets
|
||||||
|
* - 0 = #QueryEditSignWidgets
|
||||||
|
*/
|
||||||
|
WC_QUERY_STRING,
|
||||||
|
|
||||||
WC_MUSIC_WINDOW, ///< Music window.
|
/**
|
||||||
WC_MUSIC_TRACK_SELECTION, ///< Music track selection.
|
* Popup with confirm question; Window numbers: (TODO - CONFLICT)
|
||||||
WC_GAME_OPTIONS, ///< Game options window.
|
* - 0 = #BootstrapAskForDownloadWidgets
|
||||||
WC_CUSTOM_CURRENCY, ///< Custom currency.
|
* - 0 = #QueryWidgets
|
||||||
WC_CHEATS, ///< Cheat window.
|
*/
|
||||||
WC_EXTRA_VIEW_PORT, ///< Extra viewport.
|
WC_CONFIRM_POPUP_QUERY,
|
||||||
|
|
||||||
WC_CONSOLE, ///< Console.
|
|
||||||
WC_BOOTSTRAP, ///< Bootstrap.
|
|
||||||
WC_HIGHSCORE, ///< Highscore.
|
|
||||||
WC_ENDSCREEN, ///< Endscreen.
|
|
||||||
|
|
||||||
WC_AI_DEBUG, ///< AI debug window.
|
/**
|
||||||
WC_NEWGRF_INSPECT, ///< NewGRF inspect (debug).
|
* Saveload window; Window numbers:
|
||||||
WC_SPRITE_ALIGNER, ///< Sprite aligner (debug).
|
* - 0 = #SaveLoadWidgets
|
||||||
|
*/
|
||||||
|
WC_SAVELOAD,
|
||||||
|
|
||||||
WC_INVALID = 0xFFFF, ///< Invalid window.
|
/**
|
||||||
|
* Land info window; Window numbers:
|
||||||
|
* - 0 = #LandInfoWidgets
|
||||||
|
*/
|
||||||
|
WC_LAND_INFO,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Drop down menu; Window numbers:
|
||||||
|
* - 0 = #DropdownMenuWidgets
|
||||||
|
*/
|
||||||
|
WC_DROPDOWN_MENU,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* On Screen Keyboard; Window numbers:
|
||||||
|
* - 0 = #OnScreenKeyboardWidgets
|
||||||
|
*/
|
||||||
|
WC_OSK,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set date; Window numbers:
|
||||||
|
* - #VehicleID = #SetDateWidgets
|
||||||
|
*/
|
||||||
|
WC_SET_DATE,
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AI settings; Window numbers:
|
||||||
|
* - 0 = #AISettingsWidgets
|
||||||
|
*/
|
||||||
|
WC_AI_SETTINGS,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NewGRF parameters; Window numbers:
|
||||||
|
* - 0 = #NewGRFParametersWidgets
|
||||||
|
*/
|
||||||
|
WC_GRF_PARAMETERS,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* textfile; Window numbers:
|
||||||
|
* - 0 = #NewGRFTextfileWidgets
|
||||||
|
*/
|
||||||
|
WC_NEWGRF_TEXTFILE,
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Town authority; Window numbers:
|
||||||
|
* - #TownID = #TownAuthorityWidgets
|
||||||
|
*/
|
||||||
|
WC_TOWN_AUTHORITY,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Vehicle details; Window numbers:
|
||||||
|
* - #VehicleID = #VehicleDetailsWidgets
|
||||||
|
*/
|
||||||
|
WC_VEHICLE_DETAILS,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Vehicle refit; Window numbers:
|
||||||
|
* - #VehicleID = #VehicleRefitWidgets
|
||||||
|
*/
|
||||||
|
WC_VEHICLE_REFIT,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Vehicle orders; Window numbers:
|
||||||
|
* - #VehicleID = #OrderWidgets
|
||||||
|
*/
|
||||||
|
WC_VEHICLE_ORDERS,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Replace vehicle window; Window numbers:
|
||||||
|
* - #VehicleType = #ReplaceVehicleWidgets
|
||||||
|
*/
|
||||||
|
WC_REPLACE_VEHICLE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Vehicle timetable; Window numbers:
|
||||||
|
* - #VehicleID = #VehicleTimetableWidgets
|
||||||
|
*/
|
||||||
|
WC_VEHICLE_TIMETABLE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Company colour selection; Window numbers:
|
||||||
|
* - #CompanyID = #SelectCompanyLiveryWidgets
|
||||||
|
*/
|
||||||
|
WC_COMPANY_COLOUR,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Alter company face window; Window numbers:
|
||||||
|
* - #CompanyID = #SelectCompanyManagerFaceWidgets
|
||||||
|
*/
|
||||||
|
WC_COMPANY_MANAGER_FACE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Select station (when joining stations); Window numbers:
|
||||||
|
* - 0 = #JoinStationWidgets
|
||||||
|
*/
|
||||||
|
WC_SELECT_STATION,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* News window; Window numbers:
|
||||||
|
* - 0 = #NewsWidgets
|
||||||
|
*/
|
||||||
|
WC_NEWS_WINDOW,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Town directory; Window numbers:
|
||||||
|
* - 0 = #TownDirectoryWidgets
|
||||||
|
*/
|
||||||
|
WC_TOWN_DIRECTORY,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Subsidies list; Window numbers:
|
||||||
|
* - 0 = #SubsidyListWidgets
|
||||||
|
*/
|
||||||
|
WC_SUBSIDIES_LIST,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Industry directory; Window numbers:
|
||||||
|
* - 0 = #IndustryDirectoryWidgets
|
||||||
|
*/
|
||||||
|
WC_INDUSTRY_DIRECTORY,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* News history list; Window numbers:
|
||||||
|
* - 0 = #MessageHistoryWidgets
|
||||||
|
*/
|
||||||
|
WC_MESSAGE_HISTORY,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sign list; Window numbers:
|
||||||
|
* - 0 = #SignListWidgets
|
||||||
|
*/
|
||||||
|
WC_SIGN_LIST,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AI list; Window numbers:
|
||||||
|
* - 0 = #AIListWidgets
|
||||||
|
*/
|
||||||
|
WC_AI_LIST,
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Station list; Window numbers:
|
||||||
|
* - #CompanyID = #StationListWidgets
|
||||||
|
*/
|
||||||
|
WC_STATION_LIST,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trains list; Window numbers:
|
||||||
|
* - Packed value = #GroupListWidgets / #VehicleListWidgets
|
||||||
|
*/
|
||||||
|
WC_TRAINS_LIST,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Road vehicle list; Window numbers:
|
||||||
|
* - Packed value = #GroupListWidgets / #VehicleListWidgets
|
||||||
|
*/
|
||||||
|
WC_ROADVEH_LIST,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Ships list; Window numbers:
|
||||||
|
* - Packed value = #GroupListWidgets / #VehicleListWidgets
|
||||||
|
*/
|
||||||
|
WC_SHIPS_LIST,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Aircraft list; Window numbers:
|
||||||
|
* - Packed value = #GroupListWidgets / #VehicleListWidgets
|
||||||
|
*/
|
||||||
|
WC_AIRCRAFT_LIST,
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Town view; Window numbers:
|
||||||
|
* - #TownID = #TownViewWidgets
|
||||||
|
*/
|
||||||
|
WC_TOWN_VIEW,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Vehicle view; Window numbers:
|
||||||
|
* - #VehicleID = #VehicleViewWidgets
|
||||||
|
*/
|
||||||
|
WC_VEHICLE_VIEW,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Station view; Window numbers:
|
||||||
|
* - #StationID = #StationViewWidgets
|
||||||
|
*/
|
||||||
|
WC_STATION_VIEW,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Depot view; Window numbers:
|
||||||
|
* - #TileIndex = #DepotWidgets
|
||||||
|
*/
|
||||||
|
WC_VEHICLE_DEPOT,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Waypoint view; Window numbers:
|
||||||
|
* - #WaypointID = #WaypointWidgets
|
||||||
|
*/
|
||||||
|
WC_WAYPOINT_VIEW,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Industry view; Window numbers:
|
||||||
|
* - #IndustryID = #IndustryViewWidgets
|
||||||
|
*/
|
||||||
|
WC_INDUSTRY_VIEW,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Company view; Window numbers:
|
||||||
|
* - #CompanyID = #CompanyWidgets
|
||||||
|
*/
|
||||||
|
WC_COMPANY,
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build object; Window numbers:
|
||||||
|
* - 0 = #BuildObjectWidgets
|
||||||
|
*/
|
||||||
|
WC_BUILD_OBJECT,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build vehicle; Window numbers:
|
||||||
|
* - #VehicleType = #BuildVehicleWidgets
|
||||||
|
* - #TileIndex = #BuildVehicleWidgets
|
||||||
|
*/
|
||||||
|
WC_BUILD_VEHICLE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build bridge; Window numbers:
|
||||||
|
* - #TransportType = #BuildBridgeSelectionWidgets
|
||||||
|
*/
|
||||||
|
WC_BUILD_BRIDGE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build station; Window numbers:
|
||||||
|
* - #TRANSPORT_AIR = #AirportPickerWidgets
|
||||||
|
* - #TRANSPORT_WATER = #DockToolbarWidgets
|
||||||
|
* - #TRANSPORT_RAIL = #BuildRailStationWidgets
|
||||||
|
*/
|
||||||
|
WC_BUILD_STATION,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build bus station; Window numbers:
|
||||||
|
* - #TRANSPORT_ROAD = #BuildRoadStationWidgets
|
||||||
|
*/
|
||||||
|
WC_BUS_STATION,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build truck station; Window numbers:
|
||||||
|
* - #TRANSPORT_ROAD = #BuildRoadStationWidgets
|
||||||
|
*/
|
||||||
|
WC_TRUCK_STATION,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build depot; Window numbers: (TODO - CONFLICT)
|
||||||
|
* - #TRANSPORT_WATER = #BuildDockDepotWidgets
|
||||||
|
* - #TRANSPORT_RAIL = #BuildRailDepotWidgets
|
||||||
|
* - #TRANSPORT_RAIL = #BuildRailWaypointWidgets
|
||||||
|
* - #TRANSPORT_ROAD = #BuildRoadDepotWidgets
|
||||||
|
*/
|
||||||
|
WC_BUILD_DEPOT,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Found a town; Window numbers:
|
||||||
|
* - 0 = #TownFoundingWidgets
|
||||||
|
*/
|
||||||
|
WC_FOUND_TOWN,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build industry; Window numbers:
|
||||||
|
* - 0 = #DynamicPlaceIndustriesWidgets
|
||||||
|
*/
|
||||||
|
WC_BUILD_INDUSTRY,
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Select game window; Window numbers:
|
||||||
|
* - 0 = #SelectGameIntroWidgets
|
||||||
|
*/
|
||||||
|
WC_SELECT_GAME,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Landscape generation (in Scenario Editor); Window numbers:
|
||||||
|
* - 0 = #TerraformToolbarWidgets
|
||||||
|
* - 0 = #EditorTerraformToolbarWidgets
|
||||||
|
*/
|
||||||
|
WC_SCEN_LAND_GEN,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generate landscape (newgame); Window numbers:
|
||||||
|
* - GLWM_SCENARIO = #CreateScenarioWidgets
|
||||||
|
* - #GenenerateLandscapeWindowMode = #GenerateLandscapeWidgets
|
||||||
|
*/
|
||||||
|
WC_GENERATE_LANDSCAPE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Progress report of landscape generation; Window numbers: (TODO - CONFLICT)
|
||||||
|
* - 0 = #GenerationProgressWidgets
|
||||||
|
* - 0 = #ScanProgressWidgets
|
||||||
|
*/
|
||||||
|
WC_MODAL_PROGRESS,
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Network window; Window numbers: (TODO - CONFLICT)
|
||||||
|
* - 0 = #NetworkGameWidgets
|
||||||
|
* - 0 = #NetworkLobbyWidgets
|
||||||
|
* - 1 = #NetworkContentListWidgets
|
||||||
|
* - 1 = #NetworkStartServerWidgets
|
||||||
|
*/
|
||||||
|
WC_NETWORK_WINDOW,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Client list; Window numbers:
|
||||||
|
* - 0 = #ClientListWidgets
|
||||||
|
*/
|
||||||
|
WC_CLIENT_LIST,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Popup for the client list; Window numbers:
|
||||||
|
* - #ClientID = #ClientListPopupWidgets
|
||||||
|
*/
|
||||||
|
WC_CLIENT_LIST_POPUP,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Network status window; Window numbers: (TODO - CONFLICT)
|
||||||
|
* - 0 = #NetworkJoinStatusWidgets
|
||||||
|
* - 0 = #NetworkContentDownloadStatusWidgets
|
||||||
|
*/
|
||||||
|
WC_NETWORK_STATUS_WINDOW,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Chatbox; Window numbers:
|
||||||
|
* - #DestType = #NetWorkChatWidgets
|
||||||
|
*/
|
||||||
|
WC_SEND_NETWORK_MSG,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Company password query; Window numbers:
|
||||||
|
* - 0 = #NetworkCompanyPasswordWidgets
|
||||||
|
*/
|
||||||
|
WC_COMPANY_PASSWORD_WINDOW,
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Industry cargoes chain; Window numbers:
|
||||||
|
* - 0 = #IndustryCargoesWidgets
|
||||||
|
*/
|
||||||
|
WC_INDUSTRY_CARGOES,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Legend for graphs; Window numbers:
|
||||||
|
* - 0 = #GraphLegendWidgets
|
||||||
|
*/
|
||||||
|
WC_GRAPH_LEGEND,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Finances of a company; Window numbers:
|
||||||
|
* - #CompanyID = #CompanyWidgets
|
||||||
|
*/
|
||||||
|
WC_FINANCES,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Income graph; Window numbers:
|
||||||
|
* - 0 = #CompanyValueWidgets
|
||||||
|
*/
|
||||||
|
WC_INCOME_GRAPH,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Operating profit graph; Window numbers:
|
||||||
|
* - 0 = #CompanyValueWidgets
|
||||||
|
*/
|
||||||
|
WC_OPERATING_PROFIT,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delivered cargo graph; Window numbers:
|
||||||
|
* - 0 = #CompanyValueWidgets
|
||||||
|
*/
|
||||||
|
WC_DELIVERED_CARGO,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Performance history graph; Window numbers:
|
||||||
|
* - 0 = #PerformanceHistoryGraphWidgets
|
||||||
|
*/
|
||||||
|
WC_PERFORMANCE_HISTORY,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Company value graph; Window numbers:
|
||||||
|
* - 0 = #CompanyValueWidgets
|
||||||
|
*/
|
||||||
|
WC_COMPANY_VALUE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Company league window; Window numbers:
|
||||||
|
* - 0 = #CompanyLeagueWidgets
|
||||||
|
*/
|
||||||
|
WC_COMPANY_LEAGUE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Payment rates graph; Window numbers:
|
||||||
|
* - 0 = #CargoPaymentRatesWidgets
|
||||||
|
*/
|
||||||
|
WC_PAYMENT_RATES,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Performance detail window; Window numbers:
|
||||||
|
* - 0 = #PerformanceRatingDetailsWidgets
|
||||||
|
*/
|
||||||
|
WC_PERFORMANCE_DETAIL,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Company infrastructure overview; Window numbers:
|
||||||
|
* - #CompanyID = #CompanyInfrastructureWidgets
|
||||||
|
*/
|
||||||
|
WC_COMPANY_INFRASTRUCTURE,
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Buyout company (merger); Window numbers:
|
||||||
|
* - #CompanyID = #BuyCompanyWidgets
|
||||||
|
*/
|
||||||
|
WC_BUY_COMPANY,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Engine preview window; Window numbers:
|
||||||
|
* - #EngineID = #EnginePreviewWidgets
|
||||||
|
*/
|
||||||
|
WC_ENGINE_PREVIEW,
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Music window; Window numbers:
|
||||||
|
* - 0 = #MusicWidgets
|
||||||
|
*/
|
||||||
|
WC_MUSIC_WINDOW,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Music track selection; Window numbers:
|
||||||
|
* - 0 = MusicTrackSelectionWidgets
|
||||||
|
*/
|
||||||
|
WC_MUSIC_TRACK_SELECTION,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Game options window; Window numbers: (TODO - CONFLICT)
|
||||||
|
* - 0 = #AIConfigWidgets
|
||||||
|
* - 0 = #AboutWidgets
|
||||||
|
* - 0 = #NewGRFStateWidgets
|
||||||
|
* - 0 = #MessageOptionWidgets
|
||||||
|
* - 0 = #GameOptionsWidgets
|
||||||
|
* - 0 = #GameDifficultyWidgets
|
||||||
|
* - 0 = #GameSettingsWidgets
|
||||||
|
*/
|
||||||
|
WC_GAME_OPTIONS,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Custom currency; Window numbers:
|
||||||
|
* - 0 = #CustomCurrencyWidgets
|
||||||
|
*/
|
||||||
|
WC_CUSTOM_CURRENCY,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Cheat window; Window numbers:
|
||||||
|
* - 0 = #CheatWidgets
|
||||||
|
*/
|
||||||
|
WC_CHEATS,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extra viewport; Window numbers:
|
||||||
|
* - Ascending value = #ExtraViewportWidgets
|
||||||
|
*/
|
||||||
|
WC_EXTRA_VIEW_PORT,
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Console; Window numbers:
|
||||||
|
* - 0 = #ConsoleWidgets
|
||||||
|
*/
|
||||||
|
WC_CONSOLE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Bootstrap; Window numbers:
|
||||||
|
* - 0 = #BootstrapBackgroundWidgets
|
||||||
|
*/
|
||||||
|
WC_BOOTSTRAP,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Highscore; Window numbers:
|
||||||
|
* - 0 = #HighscoreWidgets
|
||||||
|
*/
|
||||||
|
WC_HIGHSCORE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Endscreen; Window numbers:
|
||||||
|
* - 0 = #HighscoreWidgets
|
||||||
|
*/
|
||||||
|
WC_ENDSCREEN,
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AI debug window; Window numbers:
|
||||||
|
* - 0 = #AIDebugWidgets
|
||||||
|
*/
|
||||||
|
WC_AI_DEBUG,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NewGRF inspect (debug); Window numbers:
|
||||||
|
* - Packed value = #NewGRFInspectWidgets
|
||||||
|
*/
|
||||||
|
WC_NEWGRF_INSPECT,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sprite aligner (debug); Window numbers:
|
||||||
|
* - 0 = #SpriteAlignerWidgets
|
||||||
|
*/
|
||||||
|
WC_SPRITE_ALIGNER,
|
||||||
|
|
||||||
|
WC_INVALID = 0xFFFF, ///< Invalid window.
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue