Files
@ r11049:6eb2c87ed64a
Branch filter:
Location: cpp/openttd-patchpack/source/src/network/network_gui.h - annotation
r11049:6eb2c87ed64a
1.7 KiB
text/x-c
(svn r15389) -Feature: Add ability to select which base graphics set is used from the Game Options window. The change takes effect when the window is closed. This option can only be used from the intro menu, as reloading graphics during a game may cause issues.
r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r9111:983de9c5a848 r9111:983de9c5a848 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r9428:6800206a6c0d r9428:6800206a6c0d r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r10207:a1fc2f2a33db r6531:6adce565d8c5 r6247:96e840dbefcc r6247:96e840dbefcc r6247:96e840dbefcc r9241:4fad6d9f7a34 r5475:3f5cd13d1b63 r10457:8667446e8fd4 r10457:8667446e8fd4 r10457:8667446e8fd4 r10457:8667446e8fd4 r10457:8667446e8fd4 r10457:8667446e8fd4 r10457:8667446e8fd4 r10457:8667446e8fd4 r10457:8667446e8fd4 r10457:8667446e8fd4 r10457:8667446e8fd4 r10457:8667446e8fd4 r10457:8667446e8fd4 r10457:8667446e8fd4 r10457:8667446e8fd4 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r6531:6adce565d8c5 r6247:96e840dbefcc r6247:96e840dbefcc r9241:4fad6d9f7a34 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 | /* $Id$ */
/** @file network_gui.h GUIs related to networking. */
#ifndef NETWORK_GUI_H
#define NETWORK_GUI_H
#ifdef ENABLE_NETWORK
#include "../window_type.h"
#include "network_type.h"
void ShowNetworkNeedPassword(NetworkPasswordType npt);
void ShowNetworkGiveMoneyWindow(CompanyID company);
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 {
char company_name[NETWORK_COMPANY_NAME_LENGTH]; ///< 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 earned last year
uint16 performance; ///< What was his performance last month?
bool use_password; ///< Is there a password
char clients[NETWORK_CLIENTS_LENGTH]; ///< The clients that control this company (Name1, name2, ..)
};
NetworkCompanyInfo *GetLobbyCompanyInfo(CompanyID company);
#else /* ENABLE_NETWORK */
/* Network function stubs when networking is disabled */
static inline void ShowNetworkChatQueryWindow(byte desttype, int dest) {}
static inline void ShowClientList() {}
static inline void ShowNetworkGameWindow() {}
static inline void ShowNetworkCompanyPasswordWindow(Window *parent) {}
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_GUI_H */
|