OpenTTD Source: src/widgets/script_widget.h Source File

OpenTTD Source 14.0-beta3

script_widget.h
Go to the documentation of this file.
1 /*
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/>.
6 */
7
10 #ifndef WIDGETS_SCRIPT_WIDGET_H
11 #define WIDGETS_SCRIPT_WIDGET_H
12
13 #include "../company_type.h"
14
16 enum ScriptListWidgets : WidgetID {
17 WID_SCRL_CAPTION,
18 WID_SCRL_LIST,
19 WID_SCRL_SCROLLBAR,
20 WID_SCRL_INFO_BG,
21 WID_SCRL_ACCEPT,
22 WID_SCRL_CANCEL,
23 };
24
26 enum ScriptSettingsWidgets : WidgetID {
27 WID_SCRS_CAPTION,
28 WID_SCRS_BACKGROUND,
29 WID_SCRS_SCROLLBAR,
30 WID_SCRS_ACCEPT,
31 WID_SCRS_RESET,
32
33 WID_SCRS_SETTING_DROPDOWN = -1,
34 };
35
37 enum ScriptDebugWidgets : WidgetID {
38 WID_SCRD_VIEW,
39 WID_SCRD_NAME_TEXT,
40 WID_SCRD_SETTINGS,
41 WID_SCRD_SCRIPT_GAME,
42 WID_SCRD_RELOAD_TOGGLE,
43 WID_SCRD_LOG_PANEL,
44 WID_SCRD_VSCROLLBAR,
45 WID_SCRD_COMPANY_BUTTON_START,
46 WID_SCRD_COMPANY_BUTTON_END = WID_SCRD_COMPANY_BUTTON_START + MAX_COMPANIES - 1,
47 WID_SCRD_BREAK_STRING_WIDGETS,
48 WID_SCRD_BREAK_STR_ON_OFF_BTN,
49 WID_SCRD_BREAK_STR_EDIT_BOX,
50 WID_SCRD_MATCH_CASE_BTN,
51 WID_SCRD_CONTINUE_BTN,
52 WID_SCRD_HSCROLLBAR,
53 };
54
55 #endif /* WIDGETS_SCRIPT_WIDGET_H */
WID_SCRD_SCRIPT_GAME
@ WID_SCRD_SCRIPT_GAME
Game Script button.
Definition: script_widget.h:41
ScriptDebugWidgets
ScriptDebugWidgets
Widgets of the ScriptDebugWindow class.
Definition: script_widget.h:37
WID_SCRD_COMPANY_BUTTON_END
@ WID_SCRD_COMPANY_BUTTON_END
Last possible button in the VIEW.
Definition: script_widget.h:46
WID_SCRD_SETTINGS
@ WID_SCRD_SETTINGS
Settings button.
Definition: script_widget.h:40
WID_SCRD_RELOAD_TOGGLE
@ WID_SCRD_RELOAD_TOGGLE
Reload button.
Definition: script_widget.h:42
WID_SCRD_BREAK_STR_ON_OFF_BTN
@ WID_SCRD_BREAK_STR_ON_OFF_BTN
Enable breaking on string.
Definition: script_widget.h:48
WID_SCRD_COMPANY_BUTTON_START
@ WID_SCRD_COMPANY_BUTTON_START
Buttons in the VIEW.
Definition: script_widget.h:45
WidgetID
int WidgetID
Widget ID.
Definition: window_type.h:18
ScriptSettingsWidgets
ScriptSettingsWidgets
Widgets of the ScriptSettingsWindow class.
Definition: script_widget.h:26
WID_SCRL_SCROLLBAR
@ WID_SCRL_SCROLLBAR
Scrollbar next to the Script list.
Definition: script_widget.h:19
MAX_COMPANIES
@ MAX_COMPANIES
Maximum number of companies.
Definition: company_type.h:23
WID_SCRS_ACCEPT
@ WID_SCRS_ACCEPT
Accept button.
Definition: script_widget.h:30
WID_SCRL_INFO_BG
@ WID_SCRL_INFO_BG
Panel to draw some Script information on.
Definition: script_widget.h:20
WID_SCRS_CAPTION
@ WID_SCRS_CAPTION
Caption of the window.
Definition: script_widget.h:27
WID_SCRS_SETTING_DROPDOWN
@ WID_SCRS_SETTING_DROPDOWN
Dynamically created dropdown for changing setting value.
Definition: script_widget.h:33
WID_SCRD_BREAK_STRING_WIDGETS
@ WID_SCRD_BREAK_STRING_WIDGETS
The panel to handle the breaking on string.
Definition: script_widget.h:47
WID_SCRL_ACCEPT
@ WID_SCRL_ACCEPT
Accept button.
Definition: script_widget.h:21
WID_SCRL_CANCEL
@ WID_SCRL_CANCEL
Cancel button.
Definition: script_widget.h:22
WID_SCRD_NAME_TEXT
@ WID_SCRD_NAME_TEXT
Name of the current selected.
Definition: script_widget.h:39
WID_SCRD_VSCROLLBAR
@ WID_SCRD_VSCROLLBAR
Vertical scrollbar of the log panel.
Definition: script_widget.h:44
WID_SCRD_CONTINUE_BTN
@ WID_SCRD_CONTINUE_BTN
Continue button.
Definition: script_widget.h:51
ScriptListWidgets
ScriptListWidgets
Widgets of the ScriptListWindow class.
Definition: script_widget.h:16
WID_SCRS_RESET
@ WID_SCRS_RESET
Reset button.
Definition: script_widget.h:31
WID_SCRL_CAPTION
@ WID_SCRL_CAPTION
Caption of the window.
Definition: script_widget.h:17
WID_SCRD_MATCH_CASE_BTN
@ WID_SCRD_MATCH_CASE_BTN
Checkbox to use match caching or not.
Definition: script_widget.h:50
WID_SCRS_BACKGROUND
@ WID_SCRS_BACKGROUND
Panel to draw the settings on.
Definition: script_widget.h:28
WID_SCRD_HSCROLLBAR
@ WID_SCRD_HSCROLLBAR
Horizontal scrollbar of the log panel.
Definition: script_widget.h:52
WID_SCRD_VIEW
@ WID_SCRD_VIEW
The row of company buttons.
Definition: script_widget.h:38
WID_SCRL_LIST
@ WID_SCRL_LIST
The matrix with all available Scripts.
Definition: script_widget.h:18
WID_SCRD_BREAK_STR_EDIT_BOX
@ WID_SCRD_BREAK_STR_EDIT_BOX
Edit box for the string to break on.
Definition: script_widget.h:49
WID_SCRD_LOG_PANEL
@ WID_SCRD_LOG_PANEL
Panel where the log is in.
Definition: script_widget.h:43
WID_SCRS_SCROLLBAR
@ WID_SCRS_SCROLLBAR
Scrollbar to scroll through all settings.
Definition: script_widget.h:29