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:
parent
33e95fca6a
commit
364dfcea2e
@ -834,28 +834,48 @@ void Skin::drawSpinnerBody(const core::rect< s32 > &rect, Widget* widget, const
|
|||||||
// FIXME: temporary only
|
// FIXME: temporary only
|
||||||
if (widget->isFocusedForPlayer(1))
|
if (widget->isFocusedForPlayer(1))
|
||||||
{
|
{
|
||||||
widget->r = 0;
|
//widget->r = 0;
|
||||||
widget->g = 200;
|
//widget->g = 200;
|
||||||
widget->b = 255;
|
//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))
|
else if (widget->isFocusedForPlayer(2))
|
||||||
{
|
{
|
||||||
widget->r = 120;
|
//widget->r = 120;
|
||||||
widget->g = 0;
|
//widget->g = 0;
|
||||||
widget->b = 120;
|
///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))
|
else if (widget->isFocusedForPlayer(3))
|
||||||
{
|
{
|
||||||
widget->r = 255;
|
//widget->r = 255;
|
||||||
widget->g = 0;
|
//widget->g = 0;
|
||||||
widget->b = 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
|
else
|
||||||
{
|
{
|
||||||
widget->r = -1;
|
widget->r = -1;
|
||||||
widget->g = -1;
|
widget->g = -1;
|
||||||
widget->b = -1;
|
widget->b = -1;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
core::rect< s32 > sized_rect = rect;
|
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)
|
if (m_dialog && m_dialog_size < 1.0f && widget->m_parent != NULL && widget->m_parent->getType() == gui::EGUIET_WINDOW)
|
||||||
|
Loading…
Reference in New Issue
Block a user