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

Function InvalidateNewGRFChangeWindows

src/settings_table.cpp:397–402  ·  view source on GitHub ↗

* Update any possible saveload window and delete any newgrf dialogue as * its widget parts might change. Reinit all windows as it allows access to the * newgrf debug button. */

Source from the content-addressed store, hash-verified

395 * newgrf debug button.
396 */
397static void InvalidateNewGRFChangeWindows(int32_t)
398{
399 InvalidateWindowClassesData(WC_SAVELOAD);
400 CloseWindowByClass(WC_GAME_OPTIONS);
401 ReInitAllWindows(false);
402}
403
404static void InvalidateCompanyLiveryWindow(int32_t)
405{

Callers

nothing calls this directly

Calls 3

CloseWindowByClassFunction · 0.85
ReInitAllWindowsFunction · 0.85

Tested by

no test coverage detected