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

OpenTTD Source 15.3

game_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 <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
10#ifndef WIDGETS_GS_WIDGET_H
11#define WIDGETS_GS_WIDGET_H
12
13#include "../textfile_type.h"
14
16 enum GSConfigWidgets : WidgetID {
17 WID_GSC_BACKGROUND,
18 WID_GSC_GSLIST,
19 WID_GSC_SETTINGS,
20 WID_GSC_SCROLLBAR,
21 WID_GSC_CHANGE,
22 WID_GSC_OPEN_URL,
23 WID_GSC_TEXTFILE,
24 WID_GSC_CONTENT_DOWNLOAD = WID_GSC_TEXTFILE + TFT_CONTENT_END,
25 WID_GSC_RESET,
26
27 WID_GSC_SETTING_DROPDOWN = INVALID_WIDGET,
28};
29
30#endif /* WIDGETS_GS_WIDGET_H */
GSConfigWidgets
GSConfigWidgets
Widgets of the GSConfigWindow class.
Definition game_widget.h:16
WID_GSC_GSLIST
@ WID_GSC_GSLIST
List with current selected Game Script.
Definition game_widget.h:18
WID_GSC_SETTING_DROPDOWN
@ WID_GSC_SETTING_DROPDOWN
Dynamically created dropdown for changing setting value.
Definition game_widget.h:27
WID_GSC_SETTINGS
@ WID_GSC_SETTINGS
Panel to draw the Game Script settings on.
Definition game_widget.h:19
WID_GSC_CONTENT_DOWNLOAD
@ WID_GSC_CONTENT_DOWNLOAD
Download content button.
Definition game_widget.h:24
WID_GSC_OPEN_URL
@ WID_GSC_OPEN_URL
Open GS URL.
Definition game_widget.h:22
WID_GSC_SCROLLBAR
@ WID_GSC_SCROLLBAR
Scrollbar to scroll through the selected AIs.
Definition game_widget.h:20
WID_GSC_CHANGE
@ WID_GSC_CHANGE
Select another Game Script button.
Definition game_widget.h:21
WID_GSC_BACKGROUND
@ WID_GSC_BACKGROUND
Window background.
Definition game_widget.h:17
WID_GSC_TEXTFILE
@ WID_GSC_TEXTFILE
Open GS readme, changelog (+1) or license (+2).
Definition game_widget.h:23
WID_GSC_RESET
@ WID_GSC_RESET
Reset button.
Definition game_widget.h:25
WidgetID
int WidgetID
Widget ID.
Definition window_type.h:20
INVALID_WIDGET
static constexpr WidgetID INVALID_WIDGET
An invalid widget index.
Definition window_type.h:23