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

Function applyGhostToImage

src/OpenLoco/src/Graphics/Gfx.cpp:50–60  ·  view source on GitHub ↗

0x004FFAE8

Source from the content-addressed store, hash-verified

48
49 // 0x004FFAE8
50 ImageId applyGhostToImage(uint32_t imageIndex)
51 {
52 if (Config::get().constructionMarker)
53 {
54 return ImageId(imageIndex).withTranslucency(ExtColour::unk31);
55 }
56 else
57 {
58 return ImageId(imageIndex, ExtColour::unk2C);
59 }
60 }
61
62 static std::vector<G1Element> convertElements(const std::vector<G1Element32>& elements32)
63 {

Callers 15

paintBuildingBuildingFunction · 0.85
paintBuildingFunction · 0.85
paintIndustryBuildingFunction · 0.85
paintIndustryFunction · 0.85
paintTrackFunction · 0.85
paintRoadFunction · 0.85
paintAirportFunction · 0.85
paintSignalSideFunction · 0.85
paintDocksFunction · 0.85
paintTrainStationFunction · 0.85
paintTreeFunction · 0.85
paintBogieFunction · 0.85

Calls 3

ImageIdClass · 0.85
withTranslucencyMethod · 0.80
getFunction · 0.50

Tested by

no test coverage detected