Kodi Community Forum

Full Version: Add <texturedisabled> for radio buttons, spin controls
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
As far as I can tell, it is possible to set a disabled color for radio button and spin control labels. I haven't been able to figure out how to change the color of the texture when disabled though. Would be nice if we had a <texturedisabled> tag for radio buttons and spin controls. Would allow something like this...

Code:
<texturedisabled colordiffuse="disabled">myradiobutton.png</texturedisabled>

Thanks!
Code:
!Control.IsEnabled(id)
Thanks Hitcher, this would mean duplicating all of the radio/spin controls though, right? I was hoping to be able to put the one line in my defaults.xml and be done with it.
Unfortunately, yes.

I think I requested that it used the current control's ID if it was omitted at one point.
I took the plunge and setup a build environment on my Windows 8 htpc. First time looking at the core code, but was able to add support for disabled textures for radio/spin controls. See pull request here:

https://github.com/xbmc/xbmc/pull/6943
Big +1 for this!
Anyone from team could review it?
(2015-04-15, 09:42)Sorien Wrote: [ -> ]Anyone from team could review it?

They're reviewing it. Smile