summaryrefslogtreecommitdiffstats
path: root/pokemodr/MapTrainerTeamMemberUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-05-16 20:48:52 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-05-16 20:48:52 +0000
commit5fbf25a91c75c59d56cb6b58c899323772f9176a (patch)
tree7d97e0d0b745cbc0b2073f0906de42da28487f39 /pokemodr/MapTrainerTeamMemberUI.cpp
parent9c1388c7964bd3b4ae147e39c146c96dc20947e9 (diff)
downloadsigen-5fbf25a91c75c59d56cb6b58c899323772f9176a.tar.gz
sigen-5fbf25a91c75c59d56cb6b58c899323772f9176a.tar.xz
sigen-5fbf25a91c75c59d56cb6b58c899323772f9176a.zip
[FIX] SoundUI uses correct icon names now
[FIX] Setting up combo boxes in UI widgets cleaner [ADD] AbilityEffect widget done [FIX] Fixed up MapEffect setting code git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@142 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/MapTrainerTeamMemberUI.cpp')
-rw-r--r--pokemodr/MapTrainerTeamMemberUI.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/pokemodr/MapTrainerTeamMemberUI.cpp b/pokemodr/MapTrainerTeamMemberUI.cpp
index 65b9e802..d2489dc9 100644
--- a/pokemodr/MapTrainerTeamMemberUI.cpp
+++ b/pokemodr/MapTrainerTeamMemberUI.cpp
@@ -44,8 +44,7 @@ void MapTrainerTeamMemberUI::refreshGui()
for (int i = 0; i < static_cast<const Pokemod*>(original()->pokemod())->speciesCount(); ++i)
{
const Species* species = static_cast<const Pokemod*>(original()->pokemod())->species(i);
- varSpecies->addItem(species->name());
- varSpecies->setItemData(i, species->id());
+ varSpecies->addItem(species->name(), species->id());
}
varLevel->setMaximum(static_cast<const Pokemod*>(original()->pokemod())->rules()->maxLevel());
}
@@ -66,8 +65,7 @@ void MapTrainerTeamMemberUI::setGui()
for (int i = 0; i < static_cast<const Pokemod*>(original()->pokemod())->natureCount(); ++i)
{
const Nature* nature = static_cast<const Pokemod*>(original()->pokemod())->nature(i);
- varNature->addItem(nature->name());
- varNature->setItemData(i, nature->id());
+ varNature->addItem(nature->name(), nature->id());
}
}
else