MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / colourCharacter

Function colourCharacter

src/openrct2/drawing/Drawing.String.cpp:250–261  ·  view source on GitHub ↗

* Changes the palette so that the next character changes colour */

Source from the content-addressed store, hash-verified

248 * Changes the palette so that the next character changes colour
249 */
250 static void colourCharacter(TextColour colour, bool withOutline, TextColours& textPalette)
251 {
252 auto mapping = getTextColourMapping(colour);
253
254 if (!withOutline)
255 {
256 mapping.sunnyOutline = PaletteIndex::transparent;
257 mapping.shadowOutline = PaletteIndex::transparent;
258 }
259
260 textPalette = mapping;
261 }
262
263 /**
264 * Changes the palette so that the next character changes colour

Callers 1

processFormatCodeFunction · 0.85

Calls 1

getTextColourMappingFunction · 0.85

Tested by

no test coverage detected