diff --git a/src/states_screens/race_gui.cpp b/src/states_screens/race_gui.cpp index 0a2c436c9..0ac83244e 100644 --- a/src/states_screens/race_gui.cpp +++ b/src/states_screens/race_gui.cpp @@ -224,6 +224,20 @@ void RaceGUI::drawScores() static video::SColor color = video::SColor(255,255,255,255); //Draw kart icons above score(denoting teams) + irr::video::ITexture *red_team = irr_driver->getTexture( + file_manager->getTextureFile("soccer_ball_red.png")); + irr::video::ITexture *blue_team = irr_driver->getTexture( + file_manager->getTextureFile("soccer_ball_blue.png")); + + core::rect indicatorPos(offsetX-6, offsetY, + offsetX -6 + red_team->getSize().Width/8, + offsetY + red_team->getSize().Height/8); + core::rect sourceRect(core::position2d(0,0), + red_team->getOriginalSize()); + irr_driver->getVideoDriver()->draw2DImage(red_team,indicatorPos,sourceRect, + NULL,NULL,true); + + for(unsigned int i=0; igetNumKarts(); i++){ int j = soccerWorld->getTeamLeader(i); if(j < 0) break; @@ -247,6 +261,15 @@ void RaceGUI::drawScores() font->draw(score.c_str(),pos,color); offsetX += position.LowerRightCorner.X; } + offsetX = 80; + offsetY = 5; + indicatorPos = core::rect(offsetX, offsetY, + offsetX + blue_team->getSize().Width/8, + offsetY + blue_team->getSize().Height/8); + sourceRect = core::rect (core::position2d(0,0), + blue_team->getOriginalSize()); + irr_driver->getVideoDriver()->draw2DImage(blue_team,indicatorPos,sourceRect, + NULL,NULL,true); } //----------------------------------------------------------------------------- /** Displays the racing time on the screen.s