Commit c9190dd6 authored by Rogerborg's avatar Rogerborg

http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=32029

Grey out combo boxes when they're disabled.  Not tested, as I feel like living dangerously.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2115 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 98766ca5
...@@ -343,8 +343,17 @@ void CGUIComboBox::draw() ...@@ -343,8 +343,17 @@ void CGUIComboBox::draw()
LastFocus = currentFocus; LastFocus = currentFocus;
SelectedText->setBackgroundColor(skin->getColor(EGDC_HIGH_LIGHT)); SelectedText->setBackgroundColor(skin->getColor(EGDC_HIGH_LIGHT));
SelectedText->setDrawBackground(HasFocus);
SelectedText->setOverrideColor(skin->getColor(HasFocus ? EGDC_HIGH_LIGHT_TEXT : EGDC_BUTTON_TEXT)); if(isEnabled())
{
SelectedText->setDrawBackground(HasFocus);
SelectedText->setOverrideColor(skin->getColor(HasFocus ? EGDC_HIGH_LIGHT_TEXT : EGDC_BUTTON_TEXT));
}
else
{
SelectedText->setDrawBackground(false);
SelectedText->setOverrideColor(skin->getColor(EGDC_GRAY_TEXT));
}
} }
core::rect<s32> frameRect(AbsoluteRect); core::rect<s32> frameRect(AbsoluteRect);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment