Files
@ r25885:43fa080bc3b4
Branch filter:
Location: cpp/openttd-patchpack/source/src/network/network_gui.h - annotation
r25885:43fa080bc3b4
1.9 KiB
text/x-c
Fix 508e465b: network servers didn't show invite-code / connection-type in Online Players GUI (#9478)
The selector selects the first widget, which by accident was now only
the server visibility.
The selector selects the first widget, which by accident was now only
the server visibility.
r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r9111:983de9c5a848 r9111:983de9c5a848 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r14248:a9050881acd7 r25289:7c44ede418ad r14248:a9050881acd7 r9428:6800206a6c0d r9428:6800206a6c0d r25293:51d13a17d6ec r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r6531:6adce565d8c5 r6247:96e840dbefcc r6247:96e840dbefcc r6247:96e840dbefcc r9241:4fad6d9f7a34 r5475:3f5cd13d1b63 r10457:8667446e8fd4 r10457:8667446e8fd4 r10457:8667446e8fd4 r25492:95b5ff29c101 r25492:95b5ff29c101 r25492:95b5ff29c101 r25492:95b5ff29c101 r25492:95b5ff29c101 r25492:95b5ff29c101 r25492:95b5ff29c101 r25492:95b5ff29c101 r10457:8667446e8fd4 r10457:8667446e8fd4 r10457:8667446e8fd4 r25293:51d13a17d6ec r25849:38205b3e59c6 r10457:8667446e8fd4 r5475:3f5cd13d1b63 | /*
* This file is part of OpenTTD.
* 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.
* 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.
* 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/>.
*/
/** @file network_gui.h GUIs related to networking. */
#ifndef NETWORK_GUI_H
#define NETWORK_GUI_H
#include "../company_type.h"
#include "../date_type.h"
#include "../economy_type.h"
#include "../window_type.h"
#include "network_type.h"
#include "network_gamelist.h"
void ShowNetworkNeedPassword(NetworkPasswordType npt);
void ShowNetworkChatQueryWindow(DestType type, int dest);
void ShowJoinStatusWindow();
void ShowNetworkGameWindow();
void ShowClientList();
void ShowNetworkCompanyPasswordWindow(Window *parent);
/** Company information stored at the client side */
struct NetworkCompanyInfo : NetworkCompanyStats {
std::string company_name; ///< Company name
Year inaugurated_year; ///< What year the company started in
Money company_value; ///< The company value
Money money; ///< The amount of money the company has
Money income; ///< How much did the company earn last year
uint16 performance; ///< What was his performance last month?
bool use_password; ///< Is there a password
std::string clients; ///< The clients that control this company (Name1, name2, ..)
};
NetworkCompanyInfo *GetLobbyCompanyInfo(CompanyID company);
NetworkGameList *GetLobbyGameInfo();
void ShowNetworkAskRelay(const std::string &connection_string, const std::string &token);
#endif /* NETWORK_GUI_H */
|