OpenTTD

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