Goal text was drawing twice. Leave only global text in race gui.
Also add possibility to translate it. Previously was added only string from soccer_world. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14121 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -122,11 +122,11 @@ void SoccerWorld::onCheckGoalTriggered(bool first_goal)
|
||||
if (m_can_score_points)
|
||||
{
|
||||
//I18N: soccer mode
|
||||
m_race_gui->addMessage(_("GOAL!"), NULL,
|
||||
/* time */ 5.0f,
|
||||
video::SColor(255,255,255,255),
|
||||
/*important*/ false,
|
||||
/*big font*/ true);
|
||||
//~ m_race_gui->addMessage(_("GOAL!"), NULL,
|
||||
//~ /* time */ 5.0f,
|
||||
//~ video::SColor(255,255,255,255),
|
||||
//~ /*important*/ true,
|
||||
//~ /*big font*/ true);
|
||||
m_team_goals[first_goal ? 0 : 1]++;
|
||||
//printf("Score:\nTeam One %d : %d Team Two\n", m_team_goals[0], m_team_goals[1]);
|
||||
World *world = World::getWorld();
|
||||
|
||||
@@ -69,8 +69,8 @@ RaceGUIBase::RaceGUIBase()
|
||||
m_string_set = _("Set!");
|
||||
//I18N: as in "ready, set, go", shown at the beginning of the race
|
||||
m_string_go = _("Go!");
|
||||
//Shown when a goal is scored
|
||||
m_string_goal = "GOAL!";
|
||||
//I18N: Shown when a goal is scored
|
||||
m_string_goal = _("GOAL!");
|
||||
// Make the two materials permanent (in case that they are not listed
|
||||
// in the textures/materials.xml file).
|
||||
m_music_icon = material_manager->getMaterial("notes.png",
|
||||
|
||||
Reference in New Issue
Block a user