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

Method drawPreviewImage

src/OpenLoco/src/Objects/VehicleObject.cpp:23–30  ·  view source on GitHub ↗

0x004B8C52

Source from the content-addressed store, hash-verified

21{
22 // 0x004B8C52
23 void VehicleObject::drawPreviewImage(Gfx::DrawingContext& drawingCtx, const int16_t x, const int16_t y) const
24 {
25 uint8_t yaw = Ui::WindowManager::getVehiclePreviewRotationFrameYaw();
26 uint8_t roll = Ui::WindowManager::getVehiclePreviewRotationFrameRoll();
27
28 ColourScheme colour{ Colour::mutedSeaGreen, Colour::white };
29 drawVehicleOverview(drawingCtx, Ui::Point{ x, y } + Ui::Point{ 0, 19 }, *this, yaw, roll, colour);
30 }
31
32 // TODO: Should only be defined in ObjectSelectionWindow
33 static constexpr uint8_t kDescriptionRowHeight = 10;

Callers

nothing calls this directly

Tested by

no test coverage detected