Skip to content

Commit

Permalink
Show abilities on Pokemon summary
Browse files Browse the repository at this point in the history
  • Loading branch information
zaksabeast committed Mar 25, 2020
1 parent c391e21 commit 7835f2f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions CaptureSight-Overlay/source/ui/views/PokemonSummaryLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ void PokemonSummaryLayout::AddBodyDrawer(tsl::gfx::Renderer* screen, u16 x, u16
std::string formattedEVs = "EVs: " + csight::utils::joinNums(m_pkm->GetEVs(), "/");
std::string nature = "Nature: " + m_pkm->GetNatureString();
std::string mintedNature = "Minted Nature: " + m_pkm->GetMintedNatureString();
std::string ability = "Ability: " + m_pkm->GetAbilityString();
std::string friendshipLabel = m_pkm->GetIsEgg() ? "Egg cycles: " : "Friendship: ";
std::string friendship = friendshipLabel + std::to_string(m_pkm->GetCurrentFriendship());
std::string moves = "Moves:";
Expand All @@ -37,10 +38,11 @@ void PokemonSummaryLayout::AddBodyDrawer(tsl::gfx::Renderer* screen, u16 x, u16
screen->drawString(nature.c_str(), false, 20, 180, 24, screen->a(0xFFFF));
screen->drawString(mintedNature.c_str(), false, 20, 220, 24, screen->a(0xFFFF));
screen->drawString(friendship.c_str(), false, 20, 260, 24, screen->a(0xFFFF));
screen->drawString(moves.c_str(), false, 20, 300, 24, screen->a(0xFFFF));
screen->drawString(move0.c_str(), false, 20, 340, 24, screen->a(0xFFFF));
screen->drawString(move1.c_str(), false, 20, 380, 24, screen->a(0xFFFF));
screen->drawString(move2.c_str(), false, 20, 420, 24, screen->a(0xFFFF));
screen->drawString(move3.c_str(), false, 20, 460, 24, screen->a(0xFFFF));
screen->drawString(pidEd.c_str(), false, 20, 500, 24, screen->a(0xFFFF));
screen->drawString(ability.c_str(), false, 20, 300, 24, screen->a(0xFFFF));
screen->drawString(moves.c_str(), false, 20, 340, 24, screen->a(0xFFFF));
screen->drawString(move0.c_str(), false, 20, 380, 24, screen->a(0xFFFF));
screen->drawString(move1.c_str(), false, 20, 420, 24, screen->a(0xFFFF));
screen->drawString(move2.c_str(), false, 20, 460, 24, screen->a(0xFFFF));
screen->drawString(move3.c_str(), false, 20, 500, 24, screen->a(0xFFFF));
screen->drawString(pidEd.c_str(), false, 20, 540, 24, screen->a(0xFFFF));
}

0 comments on commit 7835f2f

Please sign in to comment.