MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ShowNetworkAskRelay

Function ShowNetworkAskRelay

src/network/network_gui.cpp:2231–2237  ·  view source on GitHub ↗

* Show a modal confirmation window with "no" / "yes, once" / "yes, always" buttons. * @param server_connection_string The game server we want to connect to. * @param relay_connection_string The relay server we want to connect to. * @param token The token for this connection. */

Source from the content-addressed store, hash-verified

2229 * @param token The token for this connection.
2230 */
2231void ShowNetworkAskRelay(std::string_view server_connection_string, std::string &&relay_connection_string, std::string &&token)
2232{
2233 CloseWindowByClass(WC_NETWORK_ASK_RELAY, NRWCD_HANDLED);
2234
2235 Window *parent = GetMainWindow();
2236 new NetworkAskRelayWindow(_network_ask_relay_desc, parent, server_connection_string, std::move(relay_connection_string), std::move(token));
2237}
2238
2239/**
2240 * Window used for asking if the user wants to participate in the automated survey.

Callers 1

Calls 2

CloseWindowByClassFunction · 0.85
GetMainWindowFunction · 0.85

Tested by

no test coverage detected