MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / close

Function close

src/OpenLoco/src/Ui/WindowManager.cpp:365–383  ·  view source on GitHub ↗

0x004CC692

Source from the content-addressed store, hash-verified

363
364 // 0x004CC692
365 void close(WindowType type)
366 {
367 bool repeat = true;
368 while (repeat)
369 {
370 repeat = false;
371 for (auto&& w : _windows)
372 {
373 if (w.type != type)
374 {
375 continue;
376 }
377
378 close(&w);
379 repeat = true;
380 break;
381 }
382 }
383 }
384
385 // 0x004CC692
386 void close(WindowType type, WindowNumber_t id)

Callers 11

endFunction · 0.70
createWindowFunction · 0.70
closeConstructionWindowsFunction · 0.70
closeTopmostFunction · 0.70
closeAllFloatingWindowsFunction · 0.70
showFunction · 0.70
showImageFunction · 0.70
showBelowFunction · 0.70
showTextFunction · 0.70
showText2Function · 0.70
forceCloseCompanySelectFunction · 0.70

Calls 6

findFunction · 0.85
indexOfFunction · 0.85
callCloseMethod · 0.80
viewportRemoveMethod · 0.80
invalidateMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected