Improve highscores message

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8714 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-05-26 01:02:16 +00:00
parent 9b4df89d2e
commit fb26130a3c

View File

@ -645,7 +645,10 @@ void RaceResultGUI::displayOneEntry(unsigned int x, unsigned int y,
current_x += 20;
core::recti dest_rect = core::recti(current_x, y, current_x+100, y+10);
GUIEngine::getSmallFont()->draw(_("New highscore on position %i!", m_highscore_rank), dest_rect, video::SColor(255,255,166,0),
core::stringw message = (m_highscore_rank == 1 ? _("You topped the highscore list!") : _("New highscore!"));
GUIEngine::getSmallFont()->draw(message.c_str(), dest_rect, video::SColor(255,255,166,0),
false, false, NULL, true /* ignoreRTL */);
//printf("==== Highscore by %s ====\n", core::stringc(m_highscore_player->getProfile()->getName().c_str()).c_str());