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

Method DrawWidget

src/intro_gui.cpp:266–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264 }
265
266 void DrawWidget(const Rect &r, WidgetID widget) const override
267 {
268 switch (widget) {
269 case WID_SGI_BASESET:
270 DrawStringMultiLine(r, GetString(STR_INTRO_BASESET, _missing_extra_graphics), TC_FROMSTRING, SA_CENTER);
271 break;
272
273 case WID_SGI_TRANSLATION:
274 DrawStringMultiLine(r, GetString(STR_INTRO_TRANSLATION, _current_language->missing), TC_FROMSTRING, SA_CENTER);
275 break;
276 }
277 }
278
279 void OnResize() override
280 {

Callers

nothing calls this directly

Calls 2

DrawStringMultiLineFunction · 0.70
GetStringFunction · 0.70

Tested by

no test coverage detected