Improved multi-focus look in kart selection screen

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4393 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-01-04 18:41:04 +00:00
parent 33e95fca6a
commit 364dfcea2e

View File

@ -834,28 +834,48 @@ void Skin::drawSpinnerBody(const core::rect< s32 > &rect, Widget* widget, const
// FIXME: temporary only
if (widget->isFocusedForPlayer(1))
{
widget->r = 0;
widget->g = 200;
widget->b = 255;
//widget->r = 0;
//widget->g = 200;
//widget->b = 255;
core::rect< s32 > rect2 = rect;
rect2.UpperLeftCorner.X += 2;
rect2.UpperLeftCorner.Y -= 3;
rect2.LowerRightCorner.X -= 2;
rect2.LowerRightCorner.Y += 5;
drawBoxFromStretchableTexture(widget, rect2, SkinConfig::m_render_params["squareFocusHalo2::neutral"]);
}
else if (widget->isFocusedForPlayer(2))
{
widget->r = 120;
widget->g = 0;
widget->b = 120;
//widget->r = 120;
//widget->g = 0;
///widget->b = 120;
core::rect< s32 > rect2 = rect;
rect2.UpperLeftCorner.X += 2;
rect2.UpperLeftCorner.Y -= 3;
rect2.LowerRightCorner.X -= 2;
rect2.LowerRightCorner.Y += 5;
drawBoxFromStretchableTexture(widget, rect2, SkinConfig::m_render_params["squareFocusHalo3::neutral"]);
}
else if (widget->isFocusedForPlayer(3))
{
widget->r = 255;
widget->g = 0;
widget->b = 0;
//widget->r = 255;
//widget->g = 0;
//widget->b = 0;
core::rect< s32 > rect2 = rect;
rect2.UpperLeftCorner.X += 2;
rect2.UpperLeftCorner.Y -= 3;
rect2.LowerRightCorner.X -= 2;
rect2.LowerRightCorner.Y += 5;
drawBoxFromStretchableTexture(widget, rect2, SkinConfig::m_render_params["squareFocusHalo4::neutral"]);
}
/*
else
{
widget->r = -1;
widget->g = -1;
widget->b = -1;
}
}*/
core::rect< s32 > sized_rect = rect;
if (m_dialog && m_dialog_size < 1.0f && widget->m_parent != NULL && widget->m_parent->getType() == gui::EGUIET_WINDOW)