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

Function draw

src/OpenLoco/src/Ui/Windows/NetworkStatus.cpp:104–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 }
103
104 static void draw(Window& self, Gfx::DrawingContext& drawingCtx)
105 {
106 auto tr = Gfx::TextRenderer(drawingCtx);
107
108 self.draw(drawingCtx);
109
110 auto origin = Point(self.x + (self.width / 2), self.y + (self.height / 2));
111 auto width = self.width;
112
113 tr.drawStringCentredClipped(origin, width, Colour::black, StringIds::buffer_1250);
114 }
115
116 static constexpr WindowEventList kEvents = {
117 .onClose = onClose,

Callers

nothing calls this directly

Calls 3

TextRendererClass · 0.85
drawMethod · 0.45

Tested by

no test coverage detected