|
@@ -10,12 +10,13 @@
|
|
|
/** @file newgrf_widget.h Types related to the newgrf widgets. */
|
|
|
|
|
|
#ifndef WIDGETS_NEWGRF_WIDGET_H
|
|
|
#define WIDGETS_NEWGRF_WIDGET_H
|
|
|
|
|
|
#include "../newgrf_config.h"
|
|
|
#include "../textfile_type.h"
|
|
|
|
|
|
/** Widgets of the #NewGRFParametersWindow class. */
|
|
|
enum NewGRFParametersWidgets {
|
|
|
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_INC, ///< Button to increase number of parameters.
|
|
@@ -26,20 +27,12 @@ enum NewGRFParametersWidgets {
|
|
|
WID_NP_ACCEPT, ///< Accept button.
|
|
|
WID_NP_RESET, ///< Reset button.
|
|
|
WID_NP_SHOW_DESCRIPTION, ///< #NWID_SELECTION to optionally display parameter descriptions.
|
|
|
WID_NP_DESCRIPTION, ///< Multi-line description of a parameter.
|
|
|
};
|
|
|
|
|
|
/** Widgets of the #NewGRFTextfileWindow class. */
|
|
|
enum NewGRFTextfileWidgets {
|
|
|
WID_NT_CAPTION, ///< The caption of the window.
|
|
|
WID_NT_BACKGROUND, ///< Panel to draw the textfile on.
|
|
|
WID_NT_VSCROLLBAR, ///< Vertical scrollbar to scroll through the textfile up-and-down.
|
|
|
WID_NT_HSCROLLBAR, ///< Horizontal scrollbar to scroll through the textfile left-to-right.
|
|
|
};
|
|
|
|
|
|
/** Widgets of the #NewGRFWindow class. */
|
|
|
enum NewGRFStateWidgets {
|
|
|
WID_NS_PRESET_LIST, ///< Active NewGRF preset.
|
|
|
WID_NS_PRESET_SAVE, ///< Save list of active NewGRFs as presets.
|
|
|
WID_NS_PRESET_DELETE, ///< Delete active preset.
|
|
|
WID_NS_ADD, ///< Add NewGRF to active list.
|