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

Function InvalidateWindowClassesData

src/window.cpp:3314–3321  ·  view source on GitHub ↗

* Mark window data of all windows of a given class as invalid (in need of re-computing) * Note that by default the invalidation is not considered to be called from GUI scope. * See InvalidateWindowData() for details on GUI-scope vs. command-scope. * @param cls Window class * @param data The data to invalidate with * @param gui_scope Whether the call is done from GUI scope */

Source from the content-addressed store, hash-verified

3312 * @param gui_scope Whether the call is done from GUI scope
3313 */
3314void InvalidateWindowClassesData(WindowClass cls, int data, bool gui_scope)
3315{
3316 for (Window *w : Window::Iterate()) {
3317 if (w->window_class == cls) {
3318 w->InvalidateData(data, gui_scope);
3319 }
3320 }
3321}
3322
3323/**
3324 * Dispatch OnGameTick event over all windows

Callers 15

CmdCreateStoryPageFunction · 0.70
CmdSetStoryPageTitleFunction · 0.70
CmdSetStoryPageDateFunction · 0.70
CmdRemoveStoryPageFunction · 0.70
GenerateDesertAreaFunction · 0.70
OnClickMethod · 0.70
FreeChainMethod · 0.70
InsertOrderAtMethod · 0.70

Calls 1

InvalidateDataMethod · 0.45

Tested by

no test coverage detected