summaryrefslogtreecommitdiff
path: root/src/widgets
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-08-14 23:07:18 +0200
committerGitHub <noreply@github.com>2021-08-14 23:07:18 +0200
commit3d55ea2d4d1259fd34f30395743b10521b7ec11a (patch)
tree6a45d8320d4f737be40ae5a03725f7d8c447a4c1 /src/widgets
parentdb13eebf2920194d3b221d97807f5f2c34e5d9c2 (diff)
downloadopenttd-3d55ea2d4d1259fd34f30395743b10521b7ec11a.tar.xz
Feature: make "join game" button join the game, instead of first showing a lobby window (#9467)
Nobody really paid attention to the lobby window, and it completely missed its purpose. Most people don't even wait for companies to show up, but just hit "New Company". This in turn means people create a lot of unneeded companies, while they "just want to watch the game" or join another company. Instead, "Join Game" now just joins the game as spectators.
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/network_widget.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/widgets/network_widget.h b/src/widgets/network_widget.h
index ea9891276..f50bf04e9 100644
--- a/src/widgets/network_widget.h
+++ b/src/widgets/network_widget.h
@@ -75,21 +75,6 @@ enum NetworkStartServerWidgets {
WID_NSS_CANCEL, ///< 'Cancel' button.
};
-/** Widgets of the #NetworkLobbyWindow class. */
-enum NetworkLobbyWidgets {
- WID_NL_BACKGROUND, ///< Background of the window.
- WID_NL_TEXT, ///< Heading text.
- WID_NL_HEADER, ///< Header above list of companies.
- WID_NL_MATRIX, ///< List of companies.
- WID_NL_SCROLLBAR, ///< Scroll bar.
- WID_NL_DETAILS, ///< Company details.
- WID_NL_JOIN, ///< 'Join company' button.
- WID_NL_NEW, ///< 'New company' button.
- WID_NL_SPECTATE, ///< 'Spectate game' button.
- WID_NL_REFRESH, ///< 'Refresh server' button.
- WID_NL_CANCEL, ///< 'Cancel' button.
-};
-
/** Widgets of the #NetworkClientListWindow class. */
enum ClientListWidgets {
WID_CL_PANEL, ///< Panel of the window.