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

Method DrawWidget

src/bootstrap_gui.cpp:110–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 }
109
110 void DrawWidget(const Rect &r, WidgetID widget) const override
111 {
112 if (widget == WID_BEM_MESSAGE) {
113 DrawStringMultiLine(r.Shrink(WidgetDimensions::scaled.frametext), STR_MISSING_GRAPHICS_ERROR, TC_FROMSTRING, SA_CENTER);
114 }
115 }
116
117 void OnClick([[maybe_unused]] Point pt, WidgetID widget, [[maybe_unused]] int click_count) override
118 {

Callers

nothing calls this directly

Calls 2

ShrinkMethod · 0.80
DrawStringMultiLineFunction · 0.70

Tested by

no test coverage detected