MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / onDraw

Method onDraw

src/openrct2-ui/windows/Error.cpp:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 }
70
71 void onDraw(Drawing::RenderTarget& rt) override
72 {
73 WindowDrawWidgets(*this, rt);
74
75 auto screenCoords = windowPos + ScreenCoordsXY{ (width + 1) / 2 - 1, kPadding - 1 };
76 drawStringCentredRaw(rt, screenCoords, _numLines, _text.data(), FontStyle::medium);
77 }
78
79 void onPeriodicUpdate() override
80 {

Callers

nothing calls this directly

Calls 3

WindowDrawWidgetsFunction · 0.85
drawStringCentredRawFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected