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

Method OnInvalidateData

src/town_gui.cpp:1338–1342  ·  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

1336 * @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.
1337 */
1338 void OnInvalidateData([[maybe_unused]] int data = 0, [[maybe_unused]] bool gui_scope = true) override
1339 {
1340 if (!gui_scope) return;
1341 this->UpdateButtons(true);
1342 }
1343};
1344
1345static WindowDesc _found_town_desc(

Callers

nothing calls this directly

Calls 1

UpdateButtonsMethod · 0.95

Tested by

no test coverage detected