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

OpenTTD Source 15.3

network_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_NETWORK_WIDGET_H
11#define WIDGETS_NETWORK_WIDGET_H
12
14 enum NetworkGameWidgets : WidgetID {
15 WID_NG_MAIN,
16
17 WID_NG_CLIENT_LABEL,
18 WID_NG_CLIENT,
19 WID_NG_FILTER_LABEL,
20 WID_NG_FILTER,
21
22 WID_NG_NAME,
23 WID_NG_CLIENTS,
24 WID_NG_MAPSIZE,
25 WID_NG_DATE,
26 WID_NG_YEARS,
27 WID_NG_INFO,
28
29 WID_NG_MATRIX,
30 WID_NG_SCROLLBAR,
31
32 WID_NG_LASTJOINED_LABEL,
33 WID_NG_LASTJOINED,
34 WID_NG_LASTJOINED_SPACER,
35
36 WID_NG_DETAILS,
37 WID_NG_JOIN,
38 WID_NG_REFRESH,
39 WID_NG_NEWGRF,
40 WID_NG_NEWGRF_SEL,
41 WID_NG_NEWGRF_MISSING,
42 WID_NG_NEWGRF_MISSING_SEL,
43
44 WID_NG_SEARCH_INTERNET,
45 WID_NG_SEARCH_LAN,
46 WID_NG_ADD,
47 WID_NG_START,
48};
49
51 enum NetworkStartServerWidgets : WidgetID {
52 WID_NSS_BACKGROUND,
53 WID_NSS_GAMENAME_LABEL,
54 WID_NSS_GAMENAME,
55 WID_NSS_SETPWD,
56 WID_NSS_CONNTYPE_LABEL,
57 WID_NSS_CONNTYPE_BTN,
58 WID_NSS_CLIENTS_LABEL,
59 WID_NSS_CLIENTS_BTND,
60 WID_NSS_CLIENTS_TXT,
61 WID_NSS_CLIENTS_BTNU,
62 WID_NSS_COMPANIES_LABEL,
63 WID_NSS_COMPANIES_BTND,
64 WID_NSS_COMPANIES_TXT,
65 WID_NSS_COMPANIES_BTNU,
66
67 WID_NSS_GENERATE_GAME,
68 WID_NSS_LOAD_GAME,
69 WID_NSS_PLAY_SCENARIO,
70 WID_NSS_PLAY_HEIGHTMAP,
71
72 WID_NSS_CANCEL,
73};
74
76 enum ClientListWidgets : WidgetID {
77 WID_CL_PANEL,
78 WID_CL_SERVER_SELECTOR,
79 WID_CL_SERVER_NAME,
80 WID_CL_SERVER_NAME_EDIT,
81 WID_CL_SERVER_VISIBILITY,
82 WID_CL_SERVER_INVITE_CODE,
83 WID_CL_SERVER_CONNECTION_TYPE,
84 WID_CL_CLIENT_NAME,
85 WID_CL_CLIENT_NAME_EDIT,
86 WID_CL_MATRIX,
87 WID_CL_SCROLLBAR,
88 WID_CL_CLIENT_COMPANY_COUNT,
89};
90
92 enum NetworkJoinStatusWidgets : WidgetID {
93 WID_NJS_PROGRESS_BAR,
94 WID_NJS_PROGRESS_TEXT,
95 WID_NJS_CANCELOK,
96};
97
99 enum NetworkAskRelayWidgets : WidgetID {
100 WID_NAR_CAPTION,
101 WID_NAR_TEXT,
102 WID_NAR_NO,
103 WID_NAR_YES_ONCE,
104 WID_NAR_YES_ALWAYS,
105};
106
108 enum NetworkAskSurveyWidgets : WidgetID {
109 WID_NAS_CAPTION,
110 WID_NAS_TEXT,
111 WID_NAS_PREVIEW,
112 WID_NAS_LINK,
113 WID_NAS_NO,
114 WID_NAS_YES,
115};
116
117#endif /* WIDGETS_NETWORK_WIDGET_H */
NetworkJoinStatusWidgets
NetworkJoinStatusWidgets
Widgets of the NetworkJoinStatusWindow class.
Definition network_widget.h:92
WID_NJS_PROGRESS_BAR
@ WID_NJS_PROGRESS_BAR
Simple progress bar.
Definition network_widget.h:93
WID_NJS_PROGRESS_TEXT
@ WID_NJS_PROGRESS_TEXT
Text explaining what is happening.
Definition network_widget.h:94
WID_NJS_CANCELOK
@ WID_NJS_CANCELOK
Cancel / OK button.
Definition network_widget.h:95
NetworkGameWidgets
NetworkGameWidgets
Widgets of the NetworkGameWindow class.
Definition network_widget.h:14
WID_NG_CLIENT
@ WID_NG_CLIENT
Panel with editbox to set client name.
Definition network_widget.h:18
WID_NG_CLIENTS
@ WID_NG_CLIENTS
'Clients' button.
Definition network_widget.h:23
WID_NG_SCROLLBAR
@ WID_NG_SCROLLBAR
Scrollbar of matrix.
Definition network_widget.h:30
WID_NG_YEARS
@ WID_NG_YEARS
'Years' button.
Definition network_widget.h:26
WID_NG_FILTER_LABEL
@ WID_NG_FILTER_LABEL
Label in front of the filter/search edit box.
Definition network_widget.h:19
WID_NG_NEWGRF_MISSING_SEL
@ WID_NG_NEWGRF_MISSING_SEL
Selection widget for the above button.
Definition network_widget.h:42
WID_NG_SEARCH_INTERNET
@ WID_NG_SEARCH_INTERNET
'Search internet server' button.
Definition network_widget.h:44
WID_NG_NEWGRF_MISSING
@ WID_NG_NEWGRF_MISSING
'Find missing NewGRF online' button.
Definition network_widget.h:41
WID_NG_LASTJOINED_SPACER
@ WID_NG_LASTJOINED_SPACER
Spacer after last joined server panel.
Definition network_widget.h:34
WID_NG_DATE
@ WID_NG_DATE
'Date' button.
Definition network_widget.h:25
WID_NG_LASTJOINED
@ WID_NG_LASTJOINED
Info about the last joined server.
Definition network_widget.h:33
WID_NG_MATRIX
@ WID_NG_MATRIX
Panel with list of games.
Definition network_widget.h:29
WID_NG_CLIENT_LABEL
@ WID_NG_CLIENT_LABEL
Label in front of client name edit box.
Definition network_widget.h:17
WID_NG_NEWGRF_SEL
@ WID_NG_NEWGRF_SEL
Selection 'widget' to hide the NewGRF settings.
Definition network_widget.h:40
WID_NG_JOIN
@ WID_NG_JOIN
'Join game' button.
Definition network_widget.h:37
WID_NG_SEARCH_LAN
@ WID_NG_SEARCH_LAN
'Search LAN server' button.
Definition network_widget.h:45
WID_NG_MAPSIZE
@ WID_NG_MAPSIZE
'Map size' button.
Definition network_widget.h:24
WID_NG_START
@ WID_NG_START
'Start server' button.
Definition network_widget.h:47
WID_NG_DETAILS
@ WID_NG_DETAILS
Panel with game details.
Definition network_widget.h:36
WID_NG_INFO
@ WID_NG_INFO
Third button in the game list panel.
Definition network_widget.h:27
WID_NG_NAME
@ WID_NG_NAME
'Name' button.
Definition network_widget.h:22
WID_NG_ADD
@ WID_NG_ADD
'Add server' button.
Definition network_widget.h:46
WID_NG_MAIN
@ WID_NG_MAIN
Main panel.
Definition network_widget.h:15
WID_NG_REFRESH
@ WID_NG_REFRESH
'Refresh server' button.
Definition network_widget.h:38
WID_NG_FILTER
@ WID_NG_FILTER
Panel with the edit box to enter the search text.
Definition network_widget.h:20
WID_NG_LASTJOINED_LABEL
@ WID_NG_LASTJOINED_LABEL
Label "Last joined server:".
Definition network_widget.h:32
WID_NG_NEWGRF
@ WID_NG_NEWGRF
'NewGRF Settings' button.
Definition network_widget.h:39
ClientListWidgets
ClientListWidgets
Widgets of the NetworkClientListWindow class.
Definition network_widget.h:76
WID_CL_CLIENT_NAME_EDIT
@ WID_CL_CLIENT_NAME_EDIT
Edit button for client name.
Definition network_widget.h:85
WID_CL_SERVER_NAME
@ WID_CL_SERVER_NAME
Server name.
Definition network_widget.h:79
WID_CL_SERVER_INVITE_CODE
@ WID_CL_SERVER_INVITE_CODE
Invite code for this server.
Definition network_widget.h:82
WID_CL_SERVER_NAME_EDIT
@ WID_CL_SERVER_NAME_EDIT
Edit button for server name.
Definition network_widget.h:80
WID_CL_CLIENT_NAME
@ WID_CL_CLIENT_NAME
Client name.
Definition network_widget.h:84
WID_CL_SERVER_SELECTOR
@ WID_CL_SERVER_SELECTOR
Selector to hide the server frame.
Definition network_widget.h:78
WID_CL_SCROLLBAR
@ WID_CL_SCROLLBAR
Scrollbar for company/client list.
Definition network_widget.h:87
WID_CL_PANEL
@ WID_CL_PANEL
Panel of the window.
Definition network_widget.h:77
WID_CL_CLIENT_COMPANY_COUNT
@ WID_CL_CLIENT_COMPANY_COUNT
Count of clients and companies.
Definition network_widget.h:88
WID_CL_SERVER_CONNECTION_TYPE
@ WID_CL_SERVER_CONNECTION_TYPE
The type of connection the Game Coordinator detected for this server.
Definition network_widget.h:83
WID_CL_SERVER_VISIBILITY
@ WID_CL_SERVER_VISIBILITY
Server visibility.
Definition network_widget.h:81
WID_CL_MATRIX
@ WID_CL_MATRIX
Company/client list.
Definition network_widget.h:86
NetworkStartServerWidgets
NetworkStartServerWidgets
Widgets of the NetworkStartServerWindow class.
Definition network_widget.h:51
WID_NSS_COMPANIES_BTNU
@ WID_NSS_COMPANIES_BTNU
'Max companies' uparrow.
Definition network_widget.h:65
WID_NSS_COMPANIES_LABEL
@ WID_NSS_COMPANIES_LABEL
Label for 'max companies'.
Definition network_widget.h:62
WID_NSS_CLIENTS_LABEL
@ WID_NSS_CLIENTS_LABEL
Label for 'max clients'.
Definition network_widget.h:58
WID_NSS_CLIENTS_TXT
@ WID_NSS_CLIENTS_TXT
'Max clients' text.
Definition network_widget.h:60
WID_NSS_CLIENTS_BTND
@ WID_NSS_CLIENTS_BTND
'Max clients' downarrow.
Definition network_widget.h:59
WID_NSS_GAMENAME
@ WID_NSS_GAMENAME
Background for editbox to set game name.
Definition network_widget.h:54
WID_NSS_CANCEL
@ WID_NSS_CANCEL
'Cancel' button.
Definition network_widget.h:72
WID_NSS_PLAY_HEIGHTMAP
@ WID_NSS_PLAY_HEIGHTMAP
Play heightmap button.
Definition network_widget.h:70
WID_NSS_GAMENAME_LABEL
@ WID_NSS_GAMENAME_LABEL
Label for the game name.
Definition network_widget.h:53
WID_NSS_LOAD_GAME
@ WID_NSS_LOAD_GAME
Load game button.
Definition network_widget.h:68
WID_NSS_GENERATE_GAME
@ WID_NSS_GENERATE_GAME
New game button.
Definition network_widget.h:67
WID_NSS_CONNTYPE_LABEL
@ WID_NSS_CONNTYPE_LABEL
Label for 'connection type'.
Definition network_widget.h:56
WID_NSS_CONNTYPE_BTN
@ WID_NSS_CONNTYPE_BTN
'Connection type' droplist button.
Definition network_widget.h:57
WID_NSS_COMPANIES_BTND
@ WID_NSS_COMPANIES_BTND
'Max companies' downarrow.
Definition network_widget.h:63
WID_NSS_SETPWD
@ WID_NSS_SETPWD
'Set password' button.
Definition network_widget.h:55
WID_NSS_CLIENTS_BTNU
@ WID_NSS_CLIENTS_BTNU
'Max clients' uparrow.
Definition network_widget.h:61
WID_NSS_COMPANIES_TXT
@ WID_NSS_COMPANIES_TXT
'Max companies' text.
Definition network_widget.h:64
WID_NSS_BACKGROUND
@ WID_NSS_BACKGROUND
Background of the window.
Definition network_widget.h:52
WID_NSS_PLAY_SCENARIO
@ WID_NSS_PLAY_SCENARIO
Play scenario button.
Definition network_widget.h:69
NetworkAskRelayWidgets
NetworkAskRelayWidgets
Widgets of the NetworkAskRelayWindow class.
Definition network_widget.h:99
WID_NAR_YES_ALWAYS
@ WID_NAR_YES_ALWAYS
"Yes, always" button.
Definition network_widget.h:104
WID_NAR_TEXT
@ WID_NAR_TEXT
Text in the window.
Definition network_widget.h:101
WID_NAR_YES_ONCE
@ WID_NAR_YES_ONCE
"Yes, once" button.
Definition network_widget.h:103
WID_NAR_NO
@ WID_NAR_NO
"No" button.
Definition network_widget.h:102
WID_NAR_CAPTION
@ WID_NAR_CAPTION
Caption of the window.
Definition network_widget.h:100
NetworkAskSurveyWidgets
NetworkAskSurveyWidgets
Widgets of the NetworkAskSurveyWindow class.
Definition network_widget.h:108
WID_NAS_YES
@ WID_NAS_YES
"Yes" button.
Definition network_widget.h:114
WID_NAS_LINK
@ WID_NAS_LINK
"Details & Privacy" button.
Definition network_widget.h:112
WID_NAS_TEXT
@ WID_NAS_TEXT
Text in the window.
Definition network_widget.h:110
WID_NAS_CAPTION
@ WID_NAS_CAPTION
Caption of the window.
Definition network_widget.h:109
WID_NAS_NO
@ WID_NAS_NO
"No" button.
Definition network_widget.h:113
WID_NAS_PREVIEW
@ WID_NAS_PREVIEW
"Preview" button.
Definition network_widget.h:111
WidgetID
int WidgetID
Widget ID.
Definition window_type.h:20