Applied icon outline patch by jmimu, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5883 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
5d631158db
commit
15523034da
BIN
data/CREDITS
BIN
data/CREDITS
Binary file not shown.
@ -99,6 +99,10 @@ RaceGUI::RaceGUI()
|
||||
|
||||
m_dist_show_overlap=2;
|
||||
m_icons_inertia=2;
|
||||
|
||||
//read icon frame picture
|
||||
m_icons_frame=material_manager->getMaterial("icons-frame.png");
|
||||
|
||||
} // RaceGUI
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@ -509,7 +513,23 @@ void RaceGUI::drawGlobalPlayerIcons(const KartIconDisplayInfo* info)
|
||||
kart->getController()->isPlayerController() ? ICON_PLAYER_WIDTH
|
||||
: ICON_WIDTH;
|
||||
const core::rect<s32> pos(x, y, x+w, y+w);
|
||||
|
||||
|
||||
//to bring to light the player's icon: add a background
|
||||
if (kart->getController()->isPlayerController())
|
||||
{
|
||||
video::SColor colors[4];
|
||||
for (unsigned int i=0;i<4;i++)
|
||||
{
|
||||
colors[i]=kart->getKartProperties()->getColor();
|
||||
colors[i].setAlpha(
|
||||
100+100*cos(M_PI/2*i+World::getWorld()->getTime()*2));
|
||||
}
|
||||
const core::rect<s32> rect(core::position2d<s32>(0,0),
|
||||
m_icons_frame->getTexture()->getOriginalSize());
|
||||
irr_driver->getVideoDriver()->draw2DImage(
|
||||
m_icons_frame->getTexture(), pos, rect,NULL, colors, true);
|
||||
}
|
||||
|
||||
// Fixes crash bug, why are certain icons not showing up?
|
||||
if ((icon != NULL) && (!kart->playingEmergencyAnimation()))
|
||||
{
|
||||
|
@ -144,6 +144,7 @@ private:
|
||||
float m_icons_inertia;///can be zero
|
||||
/** previous position of icons */
|
||||
std::vector< core::vector2d<s32> > m_previous_icons_position;
|
||||
Material *m_icons_frame;
|
||||
|
||||
void createMarkerTexture();
|
||||
void createRegularPolygon(unsigned int n, float radius,
|
||||
|
Loading…
x
Reference in New Issue
Block a user