Kodi Community Forum
[REQUEST] Disabled info and texture for buttons - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: [REQUEST] Disabled info and texture for buttons (/showthread.php?tid=101975)



[REQUEST] Disabled info and texture for buttons - `Black - 2011-05-22

Would be nice if there were a possibility to define a disabled texture for buttons as well as have a boolean condition if a button is enabled/disabled.

Maybe Control(id).Disabled or Control(id).Enabled for the condition.

Thanks. Smile


- Jezz_X - 2011-05-22

Control.IsEnabled(id) might work for half of it


- `Black - 2011-05-22

Yes, that's working, thanks. Smile Could someone add this to the wiki?

I can do a disabled texture with that too but it would be easier to have <disabledtexture></disabledtexture>.


- Hitcher - 2011-05-22

Jezz_X Wrote:Control.IsEnabled(id) might work for half of it

Didn't know that! Shocked

Needs adding to the wiki.

EDIT: Would be useful if it used the current control id if the id is omitted.


- Jezz_X - 2011-05-22

Hitcher Wrote:EDIT: Would be useful if it used the current control id if the id is omitted.

Well technically you shouldn't be able to be on the current control if its disabled ? since disabling a control skips it in navigation
Or are you confusing it with a radio button being selected


- Hitcher - 2011-05-22

Yeah, I forgot that is for the focused control.

Anyway it's help me tidy up XeeBo's Addon Info screen now.