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

Method setHighContrast

src/Interface/TextList.cpp:507–518  ·  view source on GitHub ↗

* Enables/disables high contrast color. Mostly used for * Battlescape text. * @param contrast High contrast setting. */

Source from the content-addressed store, hash-verified

505 * @param contrast High contrast setting.
506 */
507void 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

Callers 1

addRowMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected