* Enables/disables high contrast color. Mostly used for * Battlescape text. * @param contrast High contrast setting. */
| 505 | * @param contrast High contrast setting. |
| 506 | */ |
| 507 | void TextList::setHighContrast(bool contrast) |
| 508 | { |
| 509 | _contrast = contrast; |
| 510 | for (std::vector< std::vector<Text*> >::iterator u = _texts.begin(); u < _texts.end(); ++u) |
| 511 | { |
| 512 | for (std::vector<Text*>::iterator v = u->begin(); v < u->end(); ++v) |
| 513 | { |
| 514 | (*v)->setHighContrast(contrast); |
| 515 | } |
| 516 | } |
| 517 | _scrollbar->setHighContrast(contrast); |
| 518 | } |
| 519 | |
| 520 | /** |
| 521 | * Changes the horizontal alignment of the text in the list. This doesn't change |