Moved all simple messages into scripts

This commit is contained in:
Sachith Hasaranga Seneviratne 2014-06-20 12:24:52 +05:30
parent 388e9cb208
commit 588ec991a8
2 changed files with 10 additions and 16 deletions

View File

@ -27,3 +27,13 @@ void tutorial_nitro_collect()
displayMessage("Collect nitro bottles (we will use them after the curve)");
}
void tutorial_skidding2()
{
displayMessage("Note that if you manage to skid for several seconds, you will receive a bonus speedup as a reward!");
}
void tutorial_endmessage()
{
displayMessage("You are now ready to race. Good luck!");
}

View File

@ -885,22 +885,6 @@ void TrackObjectPresentationActionTrigger::onTriggerItemApproached(Item* who)
new TutorialMessageDialog(_("Accelerate and press the <%s> key while turning to skid. Skidding for a short while can help you turn faster to take sharp turns.", skid),
true);
}
else if (m_action == "tutorial_skidding2")
{
m_action_active = false;
World::getWorld()->getRaceGUI()->clearAllMessages();
new TutorialMessageDialog(_("Note that if you manage to skid for several seconds, you will receive a bonus speedup as a reward!"),
true);
}
else if (m_action == "tutorial_endmessage")
{
m_action_active = false;
World::getWorld()->getRaceGUI()->clearAllMessages();
new TutorialMessageDialog(_("You are now ready to race. Good luck!"),
true);
}
else if (m_action == "tutorial_exit")
{
World::getWorld()->scheduleExitRace();