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:
parent
7454a133d8
commit
b667501fa1
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -446,6 +446,14 @@ void RaceGUIOverworld::drawGlobalMiniMap()
|
|||||||
gui::ScalableFont* font = GUIEngine::getTitleFont();
|
gui::ScalableFont* font = GUIEngine::getTitleFont();
|
||||||
font->draw(_("Tutorial"), pos, video::SColor(255,255,255,255),
|
font->draw(_("Tutorial"), pos, video::SColor(255,255,255,255),
|
||||||
false, true /* vcenter */, NULL);
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -856,6 +856,7 @@ bool Track::loadMainTrack(const XMLNode &root)
|
|||||||
const ChallengeData* challenge = unlock_manager->getChallenge(s);
|
const ChallengeData* challenge = unlock_manager->getChallenge(s);
|
||||||
if (challenge == NULL)
|
if (challenge == NULL)
|
||||||
{
|
{
|
||||||
|
if (s != "tutorial")
|
||||||
Log::error("track", "Cannot find challenge named '%s'\n",
|
Log::error("track", "Cannot find challenge named '%s'\n",
|
||||||
m_challenges[closest_challenge_id].m_challenge_id.c_str());
|
m_challenges[closest_challenge_id].m_challenge_id.c_str());
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user