OpenTTD Source: src/network/network_gui.h File Reference

OpenTTD Source 1.11.0-RC1

Data Structures | Functions
network_gui.h File Reference
`#include "../company_type.h"`
`#include "../economy_type.h"`
`#include "../window_type.h"`
`#include "network_type.h"`

Go to the source code of this file.

## Data Structures
struct | NetworkCompanyInfo
| Company information stored at the client side. More...

## Functions
void | ShowNetworkNeedPassword (NetworkPasswordType npt)
void | ShowNetworkChatQueryWindow (DestType type, int dest)
| Show the chat window. More...
void | ShowJoinStatusWindow ()
void | ShowNetworkGameWindow ()
void | ShowClientList ()
void | ShowNetworkCompanyPasswordWindow (Window *parent)
NetworkCompanyInfo * | GetLobbyCompanyInfo (CompanyID company)
| Get the company information of a given company to fill for the lobby. More...

## Detailed Description

GUIs related to networking.

Definition in file network_gui.h.

## Function Documentation

## ◆ GetLobbyCompanyInfo()

NetworkCompanyInfo* GetLobbyCompanyInfo | ( | CompanyID | company | ) |

Get the company information of a given company to fill for the lobby.

Parameters

  company | the company to get the company info struct from.

Returns
  the company info struct to write the (downloaded) data to.

Definition at line 1630 of file network_gui.cpp.

References FindWindowById(), MAX_COMPANIES, WC_NETWORK_WINDOW, and WN_NETWORK_WINDOW_LOBBY.

Referenced by NetworkLobbyWindow::OnPaint(), and ClientNetworkGameSocketHandler::Receive_SERVER_COMPANY_INFO().

## ◆ ShowNetworkChatQueryWindow()

void ShowNetworkChatQueryWindow | ( | DestType | type,
|  | int | dest
| ) |  |

Show the chat window.

Parameters

  type | The type of destination.
  dest | The actual destination index.

Definition at line 553 of file network_chat_gui.cpp.

References _chat_window_desc, DeleteWindowByClass(), and WC_SEND_NETWORK_MSG.