2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 /** @file script_widget.h Types related to the script widgets. */
10 #ifndef WIDGETS_SCRIPT_WIDGET_H
11 #define WIDGETS_SCRIPT_WIDGET_H
13 #include "../company_type.h"
15 /** Widgets of the #ScriptListWindow class. */
16 enum ScriptListWidgets
: WidgetID
{
17 WID_SCRL_CAPTION
, ///< Caption of the window.
18 WID_SCRL_LIST
, ///< The matrix with all available Scripts.
19 WID_SCRL_SCROLLBAR
, ///< Scrollbar next to the Script list.
20 WID_SCRL_INFO_BG
, ///< Panel to draw some Script information on.
21 WID_SCRL_ACCEPT
, ///< Accept button.
22 WID_SCRL_CANCEL
, ///< Cancel button.
25 /** Widgets of the #ScriptSettingsWindow class. */
26 enum ScriptSettingsWidgets
: WidgetID
{
27 WID_SCRS_CAPTION
, ///< Caption of the window.
28 WID_SCRS_BACKGROUND
, ///< Panel to draw the settings on.
29 WID_SCRS_SCROLLBAR
, ///< Scrollbar to scroll through all settings.
30 WID_SCRS_ACCEPT
, ///< Accept button.
31 WID_SCRS_RESET
, ///< Reset button.
33 WID_SCRS_SETTING_DROPDOWN
= -1, ///< Dynamically created dropdown for changing setting value.
36 /** Widgets of the #ScriptDebugWindow class. */
37 enum ScriptDebugWidgets
: WidgetID
{
38 WID_SCRD_VIEW
, ///< The row of company buttons.
39 WID_SCRD_NAME_TEXT
, ///< Name of the current selected.
40 WID_SCRD_SETTINGS
, ///< Settings button.
41 WID_SCRD_SCRIPT_GAME
, ///< Game Script button.
42 WID_SCRD_RELOAD_TOGGLE
, ///< Reload button.
43 WID_SCRD_LOG_PANEL
, ///< Panel where the log is in.
44 WID_SCRD_VSCROLLBAR
, ///< Vertical scrollbar of the log panel.
45 WID_SCRD_COMPANY_BUTTON_START
, ///< Buttons in the VIEW.
46 WID_SCRD_COMPANY_BUTTON_END
= WID_SCRD_COMPANY_BUTTON_START
+ MAX_COMPANIES
- 1, ///< Last possible button in the VIEW.
47 WID_SCRD_BREAK_STRING_WIDGETS
, ///< The panel to handle the breaking on string.
48 WID_SCRD_BREAK_STR_ON_OFF_BTN
, ///< Enable breaking on string.
49 WID_SCRD_BREAK_STR_EDIT_BOX
, ///< Edit box for the string to break on.
50 WID_SCRD_MATCH_CASE_BTN
, ///< Checkbox to use match caching or not.
51 WID_SCRD_CONTINUE_BTN
, ///< Continue button.
52 WID_SCRD_HSCROLLBAR
, ///< Horizontal scrollbar of the log panel.
55 #endif /* WIDGETS_SCRIPT_WIDGET_H */