From a423cf3db8fa90cc09d2f92ff892e4fcdda4af16 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 30 Jun 2008 01:37:51 +0000 Subject: [FIX] Replaced Point with QPoint (less duplicate code) [FIX] Fraction and Point widgets are more compact [FIX] Fleshed out more of the TeamMember [FIX] Map tilemap editor now expands to fill all available area [FIX] Added priority values to abilities and moves [FIX] Added option for ATB-like battle rounds git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@217 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/NatureUI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pokemodr/NatureUI.cpp') diff --git a/pokemodr/NatureUI.cpp b/pokemodr/NatureUI.cpp index 67a0390c..6b15b33f 100644 --- a/pokemodr/NatureUI.cpp +++ b/pokemodr/NatureUI.cpp @@ -43,7 +43,8 @@ void Pokemodr::NatureUI::refreshGui() { varStat->clear(); const bool isSplit = pokemod()->rules()->specialSplit(); - varStat->addItems((isSplit ? Pokemod::StatGSCStr : Pokemod::StatRBYStr).mid(0, isSplit ? Pokemod::ST_End_RBY : Pokemod::ST_End_GSC)); + for (int i = Pokemod::ST_No_HP_Start; i < isSplit ? Pokemod::ST_End_RBY : Pokemod::ST_End_GSC; ++i) + varStat->addItem((isSplit ? Pokemod::StatGSCStr : Pokemod::StatRBYStr)[i], i); } void Pokemodr::NatureUI::setGui() -- cgit