MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / setSecondaryColor

Method setSecondaryColor

src/Interface/Text.cpp:281–285  ·  view source on GitHub ↗

* Changes the secondary color used to render the text. The text * switches between the primary and secondary color whenever there's * a 0x01 in the string. * @param color Color value. */

Source from the content-addressed store, hash-verified

279 * @param color Color value.
280 */
281void Text::setSecondaryColor(Uint8 color)
282{
283 _color2 = color;
284 _redraw = true;
285}
286
287/**
288 * Returns the secondary color used to render the text.

Callers 15

InventoryStateMethod · 0.45
updateStatsMethod · 0.45
DebriefingStateMethod · 0.45
ResearchStateMethod · 0.45
SoldierInfoStateMethod · 0.45
buildUiMethod · 0.45
buildUiMethod · 0.45
TransferBaseStateMethod · 0.45
CraftSoldiersStateMethod · 0.45
CraftInfoStateMethod · 0.45
ManufactureStateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected