From 9d52fa1e46c9a3f88fef0c004ed8e3b42c18604a Mon Sep 17 00:00:00 2001 From: auria Date: Sat, 4 Jun 2011 00:12:38 +0000 Subject: [PATCH] Make new fastest lap messages much less visible git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8810 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/modes/linear_world.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/modes/linear_world.cpp b/src/modes/linear_world.cpp index ab73b5726..1bbdc9388 100644 --- a/src/modes/linear_world.cpp +++ b/src/modes/linear_world.cpp @@ -365,16 +365,19 @@ void LinearWorld::newLap(unsigned int kart_index) kart_info.m_race_lap>0) { setFastestLap(kart, time_per_lap); - m_race_gui->addMessage(_("New fastest lap"), NULL, - 2.0f, 40, video::SColor(255, 100, 210, 100), true); + std::string s = StringUtils::timeToString(time_per_lap); - + irr::core::stringw m_fastest_lap_message; //I18N: as in "fastest lap: 60 seconds by Wilber" m_fastest_lap_message += _("%s by %s", s.c_str(), core::stringw(kart->getName())); - + m_race_gui->addMessage(m_fastest_lap_message, NULL, - 2.0f, 40, video::SColor(255, 100, 210, 100)); + 3.0f, 40, video::SColor(255, 255, 255, 255), false); + + m_race_gui->addMessage(_("New fastest lap"), NULL, + 3.0f, 40, video::SColor(255, 255, 255, 255), false); + } // end if new fastest lap kart_info.m_lap_start_time = getTime();