* Changes the resources for the text in the list * and calculates the selector and visible amount of rows. * @param big Pointer to large-size font. * @param small Pointer to small-size font. * @param lang Pointer to current language. */
| 410 | * @param lang Pointer to current language. |
| 411 | */ |
| 412 | void TextList::initText(Font *big, Font *small, Language *lang) |
| 413 | { |
| 414 | _big = big; |
| 415 | _small = small; |
| 416 | _font = small; |
| 417 | _lang = lang; |
| 418 | |
| 419 | delete _selector; |
| 420 | _selector = new Surface(getWidth(), _font->getHeight() + _font->getSpacing(), getX(), getY()); |
| 421 | _selector->setPalette(getPalette()); |
| 422 | _selector->setVisible(false); |
| 423 | |
| 424 | updateVisible(); |
| 425 | |
| 426 | } |
| 427 | |
| 428 | /** |
| 429 | * Changes the height of the text list. |
no test coverage detected