|
OpenTTD Source 20251116-master-g21329071df
|
GUIs related to networking. More...
#include "../company_type.h"#include "../timer/timer_game_calendar.h"#include "../economy_type.h"#include "../window_type.h"#include "network_type.h"#include "network_gamelist.h"Go to the source code of this file.
Data Structures | |
| struct | NetworkCompanyInfo |
| Company information stored at the client side. More... | |
Enumerations | |
| enum | NetworkRelayWindowCloseData : uint8_t { NRWCD_UNHANDLED = 0 , NRWCD_HANDLED = 1 } |
Functions | |
| void | ShowNetworkNeedPassword (std::shared_ptr< class NetworkAuthenticationPasswordRequest > request) |
| void | ShowNetworkChatQueryWindow (DestType type, int dest) |
| Show the chat window. | |
| void | ShowJoinStatusWindow () |
| void | ShowNetworkGameWindow () |
| void | ShowClientList () |
| void | ShowNetworkAskRelay (std::string_view server_connection_string, std::string &&relay_connection_string, std::string &&token) |
| Show a modal confirmation window with "no" / "yes, once" / "yes, always" buttons. | |
| void | ShowNetworkAskSurvey () |
| Show a modal confirmation window with "no" / "preview" / "yes" buttons. | |
| void | ShowSurveyResultTextfileWindow (Window *parent) |
GUIs related to networking.
Definition in file network_gui.h.
| enum NetworkRelayWindowCloseData : uint8_t |
| Enumerator | |
|---|---|
| NRWCD_UNHANDLED | Relay request is unhandled. |
| NRWCD_HANDLED | Relay request is handled, either by user or by timeout. |
Definition at line 41 of file network_gui.h.
| void ShowClientList | ( | ) |
Definition at line 1982 of file network_gui.cpp.
| void ShowJoinStatusWindow | ( | ) |
Definition at line 2118 of file network_gui.cpp.
| void ShowNetworkAskRelay | ( | std::string_view | server_connection_string, |
| std::string && | relay_connection_string, | ||
| std::string && | token | ||
| ) |
Show a modal confirmation window with "no" / "yes, once" / "yes, always" buttons.
| server_connection_string | The game server we want to connect to. |
| relay_connection_string | The relay server we want to connect to. |
| token | The token for this connection. |
Definition at line 2231 of file network_gui.cpp.
References CloseWindowByClass(), GetMainWindow(), NRWCD_HANDLED, and WC_NETWORK_ASK_RELAY.
Referenced by ClientNetworkCoordinatorSocketHandler::Receive_GC_TURN_CONNECT().
| void ShowNetworkAskSurvey | ( | ) |
Show a modal confirmation window with "no" / "preview" / "yes" buttons.
Definition at line 2326 of file network_gui.cpp.
References CloseWindowByClass(), GetMainWindow(), and WC_NETWORK_ASK_SURVEY.
| void ShowNetworkChatQueryWindow | ( | DestType | type, |
| int | dest | ||
| ) |
Show the chat window.
| type | The type of destination. |
| dest | The actual destination index. |
Definition at line 442 of file network_chat_gui.cpp.
References _chat_window_desc, CloseWindowByClass(), and WC_SEND_NETWORK_MSG.
Referenced by NetworkClientListWindow::OnClickClientChat(), NetworkClientListWindow::OnClickCompanyChat(), and MainWindow::OnHotkey().
| void ShowNetworkGameWindow | ( | ) |
Definition at line 941 of file network_gui.cpp.
| void ShowSurveyResultTextfileWindow | ( | Window * | parent | ) |
Definition at line 2351 of file network_gui.cpp.