Debugged challenges : several challenge files were incorrect XML

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4334 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2009-12-22 19:03:26 +00:00
parent d087c66647
commit 63db1de1d4
5 changed files with 13 additions and 8 deletions

View File

@ -2,8 +2,8 @@
<challenge
id="worldsend"
name=_("Win the At World's End\nGrand Prix")
description=_("Come first in the At World's End\nGrand Prix with 3 'Racer'\nLevel AI karts.")
name="_(Win the At World's End\nGrand Prix)"
description="_(Come first in the At World's End\nGrand Prix with 3 'Racer'\nLevel AI karts.)"
unlock-gp="alltracks"
depend-on="islandfollow"
major="grandprix"

View File

@ -2,8 +2,8 @@
<challenge
id="islandfollow"
name=_("Follow the Leader on a\nDesert Island")
description=_("Win a Follow the Leader race\nwith 3 AI karts\non a Desert Island.")
name="_(Follow the Leader on a\nDesert Island)"
description="_(Win a Follow the Leader race\nwith 3 AI karts\non a Desert Island.)"
unlock-gp="atworldsend"
depend-on="tothemoonandbackgp tollwayhead2head tollwaytime citytime"
major="single"

View File

@ -2,8 +2,8 @@
<challenge
id="tothemoonandbackgp"
name=_("Win To the Moon and Back\nGrand Prix")
description=_("Win the To the Moon and Back\nGrand Prix with 3 'Racer'\nLevel AI karts.")
name="_(Win To the Moon and Back\nGrand Prix)"
description="_(Win the To the Moon and Back\nGrand Prix with 3 'Racer'\nLevel AI karts.)"
unlock-gp="snagdrive"
depend-on="energyshiftingsands junglefollow"
major="grandprix"

View File

@ -2,8 +2,8 @@
<challenge
id="energyshiftingsands"
name=_("Collect the Pharaohs Treasure")
description=_("Finish with at least 9 nitro \npoints on 3 laps of Shifting Sands\nin under 2:20 minutes.")
name="_(Collect the Pharaohs Treasure)"
description="_(Finish with at least 9 nitro \npoints on 3 laps of Shifting Sands\nin under 2:20 minutes.)"
unlock-gp="tothemoonandback"
depend-on="energymathclass racetracktime"
major="single"

View File

@ -66,6 +66,7 @@ namespace GUIEngine
for (int n=0; n<activeChallengeAmount; n++)
{
sprintf(buffer, "challenge%i", n);
std::cout << "// Adding challenge " << buffer << " : <" << activeChallenges[n]->getId().c_str() << ">\n";
w->addItem(activeChallenges[n]->getName() + L"\n" + activeChallenges[n]->getChallengeDescription(),
buffer, "/gui/challenge.png");
}
@ -74,11 +75,15 @@ namespace GUIEngine
// TODO : add bronze/silver/gold difficulties to challenges
sprintf(buffer, "solved%i", n);
w->addItem(solvedChallenges[n]->getName(), buffer, file_manager->getTextureFile("cup_gold.png"));
std::cout << "// Adding challenge " << buffer << " : <" << solvedChallenges[n]->getId().c_str() << ">\n";
}
for (int n=0; n<lockedChallengeAmount; n++)
{
w->addItem( _("Locked : solve active challenges to gain access to more!"), "locked",
file_manager->getGUIDir() + "/challenge.png", true);
std::cout << "// Adding locked challenge <" << lockedChallenges[n]->getId().c_str() << ">\n";
}