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

OpenTTD Source 13.1

ai_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_AI_WIDGET_H
11 #define WIDGETS_AI_WIDGET_H
12
13 #include "../company_type.h"
14 #include "../textfile_type.h"
15
17 enum AIListWidgets {
18 WID_AIL_CAPTION,
19 WID_AIL_LIST,
20 WID_AIL_SCROLLBAR,
21 WID_AIL_INFO_BG,
22 WID_AIL_ACCEPT,
23 WID_AIL_CANCEL,
24 };
25
27 enum AISettingsWidgets {
28 WID_AIS_CAPTION,
29 WID_AIS_BACKGROUND,
30 WID_AIS_SCROLLBAR,
31 WID_AIS_ACCEPT,
32 WID_AIS_RESET,
33 };
34
36 enum AIConfigWidgets {
37 WID_AIC_BACKGROUND,
38 WID_AIC_DECREASE,
39 WID_AIC_INCREASE,
40 WID_AIC_NUMBER,
41 WID_AIC_LIST,
42 WID_AIC_SCROLLBAR,
43 WID_AIC_MOVE_UP,
44 WID_AIC_MOVE_DOWN,
45 WID_AIC_CHANGE,
46 WID_AIC_CONFIGURE,
47 WID_AIC_CLOSE,
48 WID_AIC_TEXTFILE,
49 WID_AIC_CONTENT_DOWNLOAD = WID_AIC_TEXTFILE + TFT_END,
50 };
51
53 enum AIDebugWidgets {
54 WID_AID_VIEW,
55 WID_AID_NAME_TEXT,
56 WID_AID_SETTINGS,
57 WID_AID_SCRIPT_GAME,
58 WID_AID_RELOAD_TOGGLE,
59 WID_AID_LOG_PANEL,
60 WID_AID_SCROLLBAR,
61 WID_AID_COMPANY_BUTTON_START,
62 WID_AID_COMPANY_BUTTON_END = WID_AID_COMPANY_BUTTON_START + MAX_COMPANIES - 1,
63 WID_AID_BREAK_STRING_WIDGETS,
64 WID_AID_BREAK_STR_ON_OFF_BTN,
65 WID_AID_BREAK_STR_EDIT_BOX,
66 WID_AID_MATCH_CASE_BTN,
67 WID_AID_CONTINUE_BTN,
68 };
69
70 #endif /* WIDGETS_AI_WIDGET_H */
WID_AIL_ACCEPT
@ WID_AIL_ACCEPT
Accept button.
Definition: ai_widget.h:22
WID_AIS_RESET
@ WID_AIS_RESET
Reset button.
Definition: ai_widget.h:32
WID_AIC_NUMBER
@ WID_AIC_NUMBER
Number of AIs.
Definition: ai_widget.h:40
WID_AID_BREAK_STR_ON_OFF_BTN
@ WID_AID_BREAK_STR_ON_OFF_BTN
Enable breaking on string.
Definition: ai_widget.h:64
WID_AIC_DECREASE
@ WID_AIC_DECREASE
Decrease the number of AIs.
Definition: ai_widget.h:38
WID_AID_RELOAD_TOGGLE
@ WID_AID_RELOAD_TOGGLE
Reload button.
Definition: ai_widget.h:58
WID_AIC_SCROLLBAR
@ WID_AIC_SCROLLBAR
Scrollbar to scroll through the selected AIs.
Definition: ai_widget.h:42
WID_AIC_CONFIGURE
@ WID_AIC_CONFIGURE
Change AI settings button.
Definition: ai_widget.h:46
WID_AIC_TEXTFILE
@ WID_AIC_TEXTFILE
Open AI readme, changelog (+1) or license (+2).
Definition: ai_widget.h:48
WID_AIL_SCROLLBAR
@ WID_AIL_SCROLLBAR
Scrollbar next to the AI list.
Definition: ai_widget.h:20
AISettingsWidgets
AISettingsWidgets
Widgets of the AISettingsWindow class.
Definition: ai_widget.h:27
WID_AID_VIEW
@ WID_AID_VIEW
The row of company buttons.
Definition: ai_widget.h:54
WID_AID_SETTINGS
@ WID_AID_SETTINGS
Settings button.
Definition: ai_widget.h:56
WID_AIS_ACCEPT
@ WID_AIS_ACCEPT
Accept button.
Definition: ai_widget.h:31
WID_AID_MATCH_CASE_BTN
@ WID_AID_MATCH_CASE_BTN
Checkbox to use match caching or not.
Definition: ai_widget.h:66
WID_AIC_MOVE_UP
@ WID_AIC_MOVE_UP
Move up button.
Definition: ai_widget.h:43
WID_AIS_SCROLLBAR
@ WID_AIS_SCROLLBAR
Scrollbar to scroll through all settings.
Definition: ai_widget.h:30
AIConfigWidgets
AIConfigWidgets
Widgets of the AIConfigWindow class.
Definition: ai_widget.h:36
WID_AIL_CANCEL
@ WID_AIL_CANCEL
Cancel button.
Definition: ai_widget.h:23
WID_AIC_MOVE_DOWN
@ WID_AIC_MOVE_DOWN
Move down button.
Definition: ai_widget.h:44
WID_AID_LOG_PANEL
@ WID_AID_LOG_PANEL
Panel where the log is in.
Definition: ai_widget.h:59
WID_AID_SCROLLBAR
@ WID_AID_SCROLLBAR
Scrollbar of the log panel.
Definition: ai_widget.h:60
WID_AID_COMPANY_BUTTON_START
@ WID_AID_COMPANY_BUTTON_START
Buttons in the VIEW.
Definition: ai_widget.h:61
WID_AID_COMPANY_BUTTON_END
@ WID_AID_COMPANY_BUTTON_END
Last possible button in the VIEW.
Definition: ai_widget.h:62
WID_AIS_BACKGROUND
@ WID_AIS_BACKGROUND
Panel to draw the settings on.
Definition: ai_widget.h:29
MAX_COMPANIES
@ MAX_COMPANIES
Maximum number of companies.
Definition: company_type.h:23
WID_AIC_CONTENT_DOWNLOAD
@ WID_AIC_CONTENT_DOWNLOAD
Download content button.
Definition: ai_widget.h:49
WID_AID_NAME_TEXT
@ WID_AID_NAME_TEXT
Name of the current selected.
Definition: ai_widget.h:55
WID_AID_CONTINUE_BTN
@ WID_AID_CONTINUE_BTN
Continue button.
Definition: ai_widget.h:67
WID_AIC_CLOSE
@ WID_AIC_CLOSE
Close window button.
Definition: ai_widget.h:47
WID_AID_BREAK_STR_EDIT_BOX
@ WID_AID_BREAK_STR_EDIT_BOX
Edit box for the string to break on.
Definition: ai_widget.h:65
WID_AIL_INFO_BG
@ WID_AIL_INFO_BG
Panel to draw some AI information on.
Definition: ai_widget.h:21
AIListWidgets
AIListWidgets
Widgets of the AIListWindow class.
Definition: ai_widget.h:17
WID_AIS_CAPTION
@ WID_AIS_CAPTION
Caption of the window.
Definition: ai_widget.h:28
WID_AIC_LIST
@ WID_AIC_LIST
List with currently selected AIs.
Definition: ai_widget.h:41
WID_AID_BREAK_STRING_WIDGETS
@ WID_AID_BREAK_STRING_WIDGETS
The panel to handle the breaking on string.
Definition: ai_widget.h:63
WID_AID_SCRIPT_GAME
@ WID_AID_SCRIPT_GAME
Game Script button.
Definition: ai_widget.h:57
WID_AIL_LIST
@ WID_AIL_LIST
The matrix with all available AIs.
Definition: ai_widget.h:19
WID_AIC_INCREASE
@ WID_AIC_INCREASE
Increase the number of AIs.
Definition: ai_widget.h:39
AIDebugWidgets
AIDebugWidgets
Widgets of the AIDebugWindow class.
Definition: ai_widget.h:53
WID_AIL_CAPTION
@ WID_AIL_CAPTION
Caption of the window.
Definition: ai_widget.h:18
WID_AIC_BACKGROUND
@ WID_AIC_BACKGROUND
Window background.
Definition: ai_widget.h:37
WID_AIC_CHANGE
@ WID_AIC_CHANGE
Select another AI button.
Definition: ai_widget.h:45