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

Method OnInit

src/intro_gui.cpp:257–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255 }
256
257 void OnInit() override
258 {
259 bool missing_sprites = _missing_extra_graphics > 0 && !IsReleasedVersion();
260 this->GetWidget<NWidgetStacked>(WID_SGI_BASESET_SELECTION)->SetDisplayedPlane(missing_sprites ? 0 : SZSP_NONE);
261
262 bool missing_lang = _current_language->missing >= _settings_client.gui.missing_strings_threshold && !IsReleasedVersion();
263 this->GetWidget<NWidgetStacked>(WID_SGI_TRANSLATION_SELECTION)->SetDisplayedPlane(missing_lang ? 0 : SZSP_NONE);
264 }
265
266 void DrawWidget(const Rect &r, WidgetID widget) const override
267 {

Callers

nothing calls this directly

Calls 1

SetDisplayedPlaneMethod · 0.80

Tested by

no test coverage detected