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

Method OnClick

src/network/network_gui.cpp:2080–2087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2078 }
2079
2080 void OnClick([[maybe_unused]] Point pt, WidgetID widget, [[maybe_unused]] int click_count) override
2081 {
2082 if (widget == WID_NJS_CANCELOK) { // Disconnect button
2083 NetworkDisconnect();
2084 SwitchToMode(SM_MENU);
2085 ShowNetworkGameWindow();
2086 }
2087 }
2088
2089 void OnQueryTextFinished(std::optional<std::string> str) override
2090 {

Callers

nothing calls this directly

Calls 3

NetworkDisconnectFunction · 0.85
SwitchToModeFunction · 0.85
ShowNetworkGameWindowFunction · 0.85

Tested by

no test coverage detected