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

Function setTextColour

src/OpenLoco/src/Graphics/TextRenderer.cpp:77–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 }
76
77 static void setTextColour(TextDrawingState& drawState, int colour)
78 {
79 const auto* el = getG1Element(ImageIds::text_palette);
80 setTextColours(drawState, el->offset[colour * 4 + 0], el->offset[colour * 4 + 1], el->offset[colour * 4 + 2]);
81 }
82
83 // 0x00451189
84 static Ui::Point loopNewline(TextDrawingState& drawState, DrawingContext& ctx, const RenderTarget* rt, Ui::Point origin, const char* str)

Callers 4

loopNewlineFunction · 0.85
drawStringFunction · 0.85
drawStringYOffsetsFunction · 0.85
drawStringMaxCharsFunction · 0.85

Calls 2

getG1ElementFunction · 0.85
setTextColoursFunction · 0.85

Tested by

no test coverage detected