Better handle filler ribbon items
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7212 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
39ebfcb9ea
commit
93503a8451
@ -813,6 +813,9 @@ void Skin::drawRibbonChild(const core::rect< s32 > &rect, Widget* widget, const
|
|||||||
{
|
{
|
||||||
if (use_glow)
|
if (use_glow)
|
||||||
{
|
{
|
||||||
|
// don't mark filler items as focused
|
||||||
|
if (widget->m_properties[PROP_ID] == RibbonWidget::NO_ITEM_ID) return;
|
||||||
|
|
||||||
int grow = 45;
|
int grow = 45;
|
||||||
static float glow_effect = 0;
|
static float glow_effect = 0;
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ void ChallengesScreen::eventCallback(GUIEngine::Widget* widget, const std::strin
|
|||||||
{
|
{
|
||||||
unlock_manager->playLockSound();
|
unlock_manager->playLockSound();
|
||||||
}
|
}
|
||||||
else if (!selection.empty())
|
else if (!selection.empty() && selection != RibbonWidget::NO_ITEM_ID)
|
||||||
{
|
{
|
||||||
//FIXME: simplify and centralize race start sequence!!
|
//FIXME: simplify and centralize race start sequence!!
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user