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

Method setRowColor

src/Interface/TextList.cpp:163–170  ·  view source on GitHub ↗

* Changes the text color of a whole row in the list. * @param row Row number. * @param color Text color. */

Source from the content-addressed store, hash-verified

161 * @param color Text color.
162 */
163void TextList::setRowColor(size_t row, Uint8 color)
164{
165 for (std::vector<Text*>::iterator i = _texts[row].begin(); i < _texts[row].end(); ++i)
166 {
167 (*i)->setColor(color);
168 }
169 _redraw = true;
170}
171
172/**
173 * Returns the text of a specific Text object in the list.

Callers 15

initMethod · 0.80
lstSoldiersClickMethod · 0.80
initMethod · 0.80
updateStringsMethod · 0.80
SellStateMethod · 0.80
updateItemStringsMethod · 0.80
TransferItemsStateMethod · 0.80
updateItemStringsMethod · 0.80
CraftArmorStateMethod · 0.80
CraftEquipmentStateMethod · 0.80
updateQuantityMethod · 0.80
PurchaseStateMethod · 0.80

Calls 1

setColorMethod · 0.45

Tested by

no test coverage detected