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

OpenTTD Source 1.11.0-RC1

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 <http://www.gnu.org/licenses/>.
6 */
7
10 #ifndef WIDGETS_NETWORK_WIDGET_H
11 #define WIDGETS_NETWORK_WIDGET_H
12
14 enum NetworkGameWidgets {
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_HEADER,
23 WID_NG_NAME,
24 WID_NG_CLIENTS,
25 WID_NG_MAPSIZE,
26 WID_NG_DATE,
27 WID_NG_YEARS,
28 WID_NG_INFO,
29
30 WID_NG_MATRIX,
31 WID_NG_SCROLLBAR,
32
33 WID_NG_LASTJOINED_LABEL,
34 WID_NG_LASTJOINED,
35 WID_NG_LASTJOINED_SPACER,
36
37 WID_NG_DETAILS,
38 WID_NG_DETAILS_SPACER,
39 WID_NG_JOIN,
40 WID_NG_REFRESH,
41 WID_NG_NEWGRF,
42 WID_NG_NEWGRF_SEL,
43 WID_NG_NEWGRF_MISSING,
44 WID_NG_NEWGRF_MISSING_SEL,
45
46 WID_NG_SEARCH_INTERNET,
47 WID_NG_SEARCH_LAN,
48 WID_NG_ADD,
49 WID_NG_START,
50 WID_NG_CANCEL,
51 };
52
54 enum NetworkStartServerWidgets {
55 WID_NSS_BACKGROUND,
56 WID_NSS_GAMENAME_LABEL,
57 WID_NSS_GAMENAME,
58 WID_NSS_SETPWD,
59 WID_NSS_CONNTYPE_LABEL,
60 WID_NSS_CONNTYPE_BTN,
61 WID_NSS_CLIENTS_LABEL,
62 WID_NSS_CLIENTS_BTND,
63 WID_NSS_CLIENTS_TXT,
64 WID_NSS_CLIENTS_BTNU,
65 WID_NSS_COMPANIES_LABEL,
66 WID_NSS_COMPANIES_BTND,
67 WID_NSS_COMPANIES_TXT,
68 WID_NSS_COMPANIES_BTNU,
69 WID_NSS_SPECTATORS_LABEL,
70 WID_NSS_SPECTATORS_BTND,
71 WID_NSS_SPECTATORS_TXT,
72 WID_NSS_SPECTATORS_BTNU,
73
74 WID_NSS_LANGUAGE_LABEL,
75 WID_NSS_LANGUAGE_BTN,
76
77 WID_NSS_GENERATE_GAME,
78 WID_NSS_LOAD_GAME,
79 WID_NSS_PLAY_SCENARIO,
80 WID_NSS_PLAY_HEIGHTMAP,
81
82 WID_NSS_CANCEL,
83 };
84
86 enum NetworkLobbyWidgets {
87 WID_NL_BACKGROUND,
88 WID_NL_TEXT,
89 WID_NL_HEADER,
90 WID_NL_MATRIX,
91 WID_NL_SCROLLBAR,
92 WID_NL_DETAILS,
93 WID_NL_JOIN,
94 WID_NL_NEW,
95 WID_NL_SPECTATE,
96 WID_NL_REFRESH,
97 WID_NL_CANCEL,
98 };
99
101 enum ClientListWidgets {
102 WID_CL_PANEL,
103 };
104
106 enum ClientListPopupWidgets {
107 WID_CLP_PANEL,
108 };
109
111 enum NetworkJoinStatusWidgets {
112 WID_NJS_BACKGROUND,
113 WID_NJS_CANCELOK,
114 };
115
117 enum NetworkCompanyPasswordWidgets {
118 WID_NCP_BACKGROUND,
119 WID_NCP_LABEL,
120 WID_NCP_PASSWORD,
121 WID_NCP_SAVE_AS_DEFAULT_PASSWORD,
122 WID_NCP_WARNING,
123 WID_NCP_CANCEL,
124 WID_NCP_OK,
125 };
126
127 #endif /* WIDGETS_NETWORK_WIDGET_H */
WID_NL_JOIN
@ WID_NL_JOIN
'Join company' button.
Definition: network_widget.h:93
WID_NSS_CLIENTS_TXT
@ WID_NSS_CLIENTS_TXT
'Max clients' text.
Definition: network_widget.h:63
WID_NG_REFRESH
@ WID_NG_REFRESH
'Refresh server' button.
Definition: network_widget.h:40
WID_NSS_CANCEL
@ WID_NSS_CANCEL
'Cancel' button.
Definition: network_widget.h:82
WID_NSS_GAMENAME
@ WID_NSS_GAMENAME
Background for editbox to set game name.
Definition: network_widget.h:57
WID_NL_MATRIX
@ WID_NL_MATRIX
List of companies.
Definition: network_widget.h:90
WID_NG_NEWGRF_MISSING
@ WID_NG_NEWGRF_MISSING
'Find missing NewGRF online' button.
Definition: network_widget.h:43
ClientListWidgets
ClientListWidgets
Widgets of the NetworkClientListWindow class.
Definition: network_widget.h:101
WID_NSS_SPECTATORS_BTNU
@ WID_NSS_SPECTATORS_BTNU
'Max spectators' uparrow.
Definition: network_widget.h:72
WID_NSS_GAMENAME_LABEL
@ WID_NSS_GAMENAME_LABEL
Label for the game name.
Definition: network_widget.h:56
WID_NJS_CANCELOK
@ WID_NJS_CANCELOK
Cancel / OK button.
Definition: network_widget.h:113
NetworkGameWidgets
NetworkGameWidgets
Widgets of the NetworkGameWindow class.
Definition: network_widget.h:14
WID_NG_CANCEL
@ WID_NG_CANCEL
'Cancel' button.
Definition: network_widget.h:50
NetworkJoinStatusWidgets
NetworkJoinStatusWidgets
Widgets of the NetworkJoinStatusWindow class.
Definition: network_widget.h:111
WID_NG_LASTJOINED_LABEL
@ WID_NG_LASTJOINED_LABEL
Label "Last joined server:".
Definition: network_widget.h:33
WID_NSS_COMPANIES_BTND
@ WID_NSS_COMPANIES_BTND
'Max companies' downarrow.
Definition: network_widget.h:66
WID_NL_TEXT
@ WID_NL_TEXT
Heading text.
Definition: network_widget.h:88
WID_NSS_BACKGROUND
@ WID_NSS_BACKGROUND
Background of the window.
Definition: network_widget.h:55
WID_NG_NEWGRF_MISSING_SEL
@ WID_NG_NEWGRF_MISSING_SEL
Selection widget for the above button.
Definition: network_widget.h:44
WID_NG_FILTER
@ WID_NG_FILTER
Panel with the edit box to enter the search text.
Definition: network_widget.h:20
WID_CLP_PANEL
@ WID_CLP_PANEL
Panel of the window.
Definition: network_widget.h:107
WID_NG_MAPSIZE
@ WID_NG_MAPSIZE
'Map size' button.
Definition: network_widget.h:25
WID_NCP_SAVE_AS_DEFAULT_PASSWORD
@ WID_NCP_SAVE_AS_DEFAULT_PASSWORD
Toggle 'button' for saving the current password as default password.
Definition: network_widget.h:121
WID_NSS_LANGUAGE_LABEL
@ WID_NSS_LANGUAGE_LABEL
Label for 'language spoken'.
Definition: network_widget.h:74
WID_NSS_CLIENTS_BTNU
@ WID_NSS_CLIENTS_BTNU
'Max clients' uparrow.
Definition: network_widget.h:64
WID_NSS_SPECTATORS_BTND
@ WID_NSS_SPECTATORS_BTND
'Max spectators' downarrow.
Definition: network_widget.h:70
WID_NG_SCROLLBAR
@ WID_NG_SCROLLBAR
Scrollbar of matrix.
Definition: network_widget.h:31
WID_NG_MAIN
@ WID_NG_MAIN
Main panel.
Definition: network_widget.h:15
WID_NSS_PLAY_SCENARIO
@ WID_NSS_PLAY_SCENARIO
Play scenario button.
Definition: network_widget.h:79
WID_NSS_CONNTYPE_BTN
@ WID_NSS_CONNTYPE_BTN
'Connection type' droplist button.
Definition: network_widget.h:60
WID_NL_NEW
@ WID_NL_NEW
'New company' button.
Definition: network_widget.h:94
WID_NG_CLIENTS
@ WID_NG_CLIENTS
'Clients' button.
Definition: network_widget.h:24
WID_NG_ADD
@ WID_NG_ADD
'Add server' button.
Definition: network_widget.h:48
WID_NSS_COMPANIES_BTNU
@ WID_NSS_COMPANIES_BTNU
'Max companies' uparrow.
Definition: network_widget.h:68
WID_NSS_SPECTATORS_TXT
@ WID_NSS_SPECTATORS_TXT
'Max spectators' text.
Definition: network_widget.h:71
WID_NCP_WARNING
@ WID_NCP_WARNING
Warning text about password security.
Definition: network_widget.h:122
WID_NG_MATRIX
@ WID_NG_MATRIX
Panel with list of games.
Definition: network_widget.h:30
WID_NG_HEADER
@ WID_NG_HEADER
Header container of the matrix.
Definition: network_widget.h:22
NetworkLobbyWidgets
NetworkLobbyWidgets
Widgets of the NetworkLobbyWindow class.
Definition: network_widget.h:86
WID_NSS_CONNTYPE_LABEL
@ WID_NSS_CONNTYPE_LABEL
Label for 'connection type'.
Definition: network_widget.h:59
WID_NSS_GENERATE_GAME
@ WID_NSS_GENERATE_GAME
New game button.
Definition: network_widget.h:77
WID_NG_NEWGRF
@ WID_NG_NEWGRF
'NewGRF Settings' button.
Definition: network_widget.h:41
WID_NG_CLIENT
@ WID_NG_CLIENT
Panel with editbox to set client name.
Definition: network_widget.h:18
WID_NJS_BACKGROUND
@ WID_NJS_BACKGROUND
Background of the window.
Definition: network_widget.h:112
NetworkCompanyPasswordWidgets
NetworkCompanyPasswordWidgets
Widgets of the NetworkCompanyPasswordWindow class.
Definition: network_widget.h:117
WID_NCP_CANCEL
@ WID_NCP_CANCEL
Close the window without changing anything.
Definition: network_widget.h:123
ClientListPopupWidgets
ClientListPopupWidgets
Widgets of the NetworkClientListPopupWindow class.
Definition: network_widget.h:106
WID_NCP_LABEL
@ WID_NCP_LABEL
Label in front of the password field.
Definition: network_widget.h:119
WID_NSS_LANGUAGE_BTN
@ WID_NSS_LANGUAGE_BTN
'Language spoken' droplist button.
Definition: network_widget.h:75
NetworkStartServerWidgets
NetworkStartServerWidgets
Widgets of the NetworkStartServerWindow class.
Definition: network_widget.h:54
WID_NG_YEARS
@ WID_NG_YEARS
'Years' button.
Definition: network_widget.h:27
WID_NL_CANCEL
@ WID_NL_CANCEL
'Cancel' button.
Definition: network_widget.h:97
WID_NSS_PLAY_HEIGHTMAP
@ WID_NSS_PLAY_HEIGHTMAP
Play heightmap button.
Definition: network_widget.h:80
WID_NG_DATE
@ WID_NG_DATE
'Date' button.
Definition: network_widget.h:26
WID_NL_SCROLLBAR
@ WID_NL_SCROLLBAR
Scroll bar.
Definition: network_widget.h:91
WID_NL_HEADER
@ WID_NL_HEADER
Header above list of companies.
Definition: network_widget.h:89
WID_NG_INFO
@ WID_NG_INFO
Third button in the game list panel.
Definition: network_widget.h:28
WID_NSS_CLIENTS_LABEL
@ WID_NSS_CLIENTS_LABEL
Label for 'max clients'.
Definition: network_widget.h:61
WID_NCP_BACKGROUND
@ WID_NCP_BACKGROUND
Background of the window.
Definition: network_widget.h:118
WID_NG_NEWGRF_SEL
@ WID_NG_NEWGRF_SEL
Selection 'widget' to hide the NewGRF settings.
Definition: network_widget.h:42
WID_NG_SEARCH_LAN
@ WID_NG_SEARCH_LAN
'Search LAN server' button.
Definition: network_widget.h:47
WID_NL_REFRESH
@ WID_NL_REFRESH
'Refresh server' button.
Definition: network_widget.h:96
WID_NG_LASTJOINED
@ WID_NG_LASTJOINED
Info about the last joined server.
Definition: network_widget.h:34
WID_NCP_PASSWORD
@ WID_NCP_PASSWORD
Input field for the password.
Definition: network_widget.h:120
WID_NG_SEARCH_INTERNET
@ WID_NG_SEARCH_INTERNET
'Search internet server' button.
Definition: network_widget.h:46
WID_NL_DETAILS
@ WID_NL_DETAILS
Company details.
Definition: network_widget.h:92
WID_NSS_COMPANIES_LABEL
@ WID_NSS_COMPANIES_LABEL
Label for 'max companies'.
Definition: network_widget.h:65
WID_NG_NAME
@ WID_NG_NAME
'Name' button.
Definition: network_widget.h:23
WID_NG_JOIN
@ WID_NG_JOIN
'Join game' button.
Definition: network_widget.h:39
WID_NSS_SETPWD
@ WID_NSS_SETPWD
'Set password' button.
Definition: network_widget.h:58
WID_NSS_CLIENTS_BTND
@ WID_NSS_CLIENTS_BTND
'Max clients' downarrow.
Definition: network_widget.h:62
WID_NG_START
@ WID_NG_START
'Start server' button.
Definition: network_widget.h:49
WID_NG_CLIENT_LABEL
@ WID_NG_CLIENT_LABEL
Label in front of client name edit box.
Definition: network_widget.h:17
WID_NL_BACKGROUND
@ WID_NL_BACKGROUND
Background of the window.
Definition: network_widget.h:87
WID_NSS_COMPANIES_TXT
@ WID_NSS_COMPANIES_TXT
'Max companies' text.
Definition: network_widget.h:67
WID_NCP_OK
@ WID_NCP_OK
Safe the password etc.
Definition: network_widget.h:124
WID_NSS_LOAD_GAME
@ WID_NSS_LOAD_GAME
Load game button.
Definition: network_widget.h:78
WID_NG_DETAILS
@ WID_NG_DETAILS
Panel with game details.
Definition: network_widget.h:37
WID_NG_FILTER_LABEL
@ WID_NG_FILTER_LABEL
Label in front of the filter/search edit box.
Definition: network_widget.h:19
WID_CL_PANEL
@ WID_CL_PANEL
Panel of the window.
Definition: network_widget.h:102
WID_NSS_SPECTATORS_LABEL
@ WID_NSS_SPECTATORS_LABEL
Label for 'max spectators'.
Definition: network_widget.h:69
WID_NG_LASTJOINED_SPACER
@ WID_NG_LASTJOINED_SPACER
Spacer after last joined server panel.
Definition: network_widget.h:35
WID_NL_SPECTATE
@ WID_NL_SPECTATE
'Spectate game' button.
Definition: network_widget.h:95
WID_NG_DETAILS_SPACER
@ WID_NG_DETAILS_SPACER
Spacer for game actual details.
Definition: network_widget.h:38