MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / WindowNetworkStatusClose

Function WindowNetworkStatusClose

src/openrct2-ui/windows/NetworkStatus.cpp:152–163  ·  view source on GitHub ↗

force close

Source from the content-addressed store, hash-verified

150
151 // force close
152 void WindowNetworkStatusClose()
153 {
154 auto* windowMgr = GetWindowManager();
155 auto window = windowMgr->FindByClass(WindowClass::networkStatus);
156 if (window == nullptr)
157 {
158 return;
159 }
160 auto networkWindow = static_cast<NetworkStatusWindow*>(window);
161 networkWindow->setCloseCallBack(nullptr);
162 networkWindow->close();
163 }
164
165 WindowBase* NetworkStatusOpenPassword()
166 {

Callers 1

ForceCloseMethod · 0.85

Calls 4

GetWindowManagerFunction · 0.85
setCloseCallBackMethod · 0.80
closeMethod · 0.65
FindByClassMethod · 0.45

Tested by

no test coverage detected