MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / draw

Function draw

src/OpenLoco/src/Ui/Windows/ObjectLoadError.cpp:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 }
85
86 static void draw(Ui::Window& self, Gfx::DrawingContext& drawingCtx)
87 {
88 // Draw widgets
89 self.draw(drawingCtx);
90
91 // Draw explanatory text
92 auto point = Point(self.x + 3, self.y + 19);
93 auto tr = Gfx::TextRenderer(drawingCtx);
94 tr.drawStringLeftWrapped(point, self.width - 6, self.getColour(WindowColour::secondary), StringIds::objectErrorExplanation);
95 }
96
97 static StringId objectTypeToString(ObjectType type)
98 {

Callers

nothing calls this directly

Calls 4

TextRendererClass · 0.85
drawStringLeftWrappedMethod · 0.80
getColourMethod · 0.80
drawMethod · 0.45

Tested by

no test coverage detected