| 95 | } |
| 96 | |
| 97 | bool CodexInterface::showNewCodex() { |
| 98 | if (auto newCodex = m_player->codexes()->firstNewCodex()) { |
| 99 | for (auto button : m_speciesTabs->buttons()) { |
| 100 | if (button->data().getString("species") == newCodex->species()) { |
| 101 | m_speciesTabs->select(m_speciesTabs->id(button)); |
| 102 | break; |
| 103 | } |
| 104 | } |
| 105 | showContents(newCodex); |
| 106 | return true; |
| 107 | } |
| 108 | |
| 109 | return false; |
| 110 | } |
| 111 | |
| 112 | void CodexInterface::updateSpecies() { |
| 113 | String newSpecies = "other"; |