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

Method OnInvalidateData

src/misc_gui.cpp:308–314  ·  view source on GitHub ↗

* Some data on this window has become invalid. * @param data Information about the changed data. * @param gui_scope Whether the call is done from GUI scope. You may not do everything when not in GUI scope. See #InvalidateWindowData() for details. */

Source from the content-addressed store, hash-verified

306 * @param gui_scope Whether the call is done from GUI scope. You may not do everything when not in GUI scope. See #InvalidateWindowData() for details.
307 */
308 void OnInvalidateData([[maybe_unused]] int data = 0, [[maybe_unused]] bool gui_scope = true) override
309 {
310 if (!gui_scope) return;
311
312 /* ReInit, "debug" sprite might have changed */
313 if (data == 1) this->ReInit();
314 }
315};
316
317/**

Callers

nothing calls this directly

Calls 1

ReInitMethod · 0.80

Tested by

no test coverage detected