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

Method DrawWidget

src/bootstrap_gui.cpp:238–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236 }
237
238 void DrawWidget(const Rect &r, WidgetID widget) const override
239 {
240 if (widget != WID_BAFD_QUESTION) return;
241
242 DrawStringMultiLine(r.Shrink(WidgetDimensions::scaled.frametext), STR_MISSING_GRAPHICS_SET_MESSAGE, TC_FROMSTRING, SA_CENTER);
243 }
244
245 void OnClick([[maybe_unused]] Point pt, WidgetID widget, [[maybe_unused]] int click_count) override
246 {

Callers

nothing calls this directly

Calls 2

ShrinkMethod · 0.80
DrawStringMultiLineFunction · 0.70

Tested by

no test coverage detected