Show explanatory message when approaching tutorial in overworld

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12635 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2013-04-10 23:13:29 +00:00
parent 7454a133d8
commit b667501fa1
4 changed files with 1132 additions and 1016 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -446,6 +446,14 @@ void RaceGUIOverworld::drawGlobalMiniMap()
gui::ScalableFont* font = GUIEngine::getTitleFont();
font->draw(_("Tutorial"), pos, video::SColor(255,255,255,255),
false, true /* vcenter */, NULL);
core::rect<s32> pos2(0,
UserConfigParams::m_height - GUIEngine::getFontHeight()*2,
UserConfigParams::m_width,
UserConfigParams::m_height);
GUIEngine::getFont()->draw(_("Press fire to play the tutorial"), pos2,
video::SColor(255,255,150,60),
true, true /* vcenter */, NULL);
continue;
}

View File

@ -856,8 +856,9 @@ bool Track::loadMainTrack(const XMLNode &root)
const ChallengeData* challenge = unlock_manager->getChallenge(s);
if (challenge == NULL)
{
Log::error("track", "Cannot find challenge named '%s'\n",
m_challenges[closest_challenge_id].m_challenge_id.c_str());
if (s != "tutorial")
Log::error("track", "Cannot find challenge named '%s'\n",
m_challenges[closest_challenge_id].m_challenge_id.c_str());
continue;
}