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

Method setColor

src/Interface/TextList.cpp:446–459  ·  view source on GitHub ↗

* Changes the color of the text in the list. This doesn't change * the color of existing text, just the color of text added from then on. * @param color Color value. */

Source from the content-addressed store, hash-verified

444 * @param color Color value.
445 */
446void TextList::setColor(Uint8 color)
447{
448 _color = color;
449 _up->setColor(color);
450 _down->setColor(color);
451 _scrollbar->setColor(color);
452 for (std::vector< std::vector<Text*> >::iterator u = _texts.begin(); u < _texts.end(); ++u)
453 {
454 for (std::vector<Text*>::iterator v = u->begin(); v < u->end(); ++v)
455 {
456 (*v)->setColor(color);
457 }
458 }
459}
460
461/**
462 * Returns the color of the text in the list.

Callers 4

setCellColorMethod · 0.45
setRowColorMethod · 0.45
addRowMethod · 0.45
setArrowColorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected