[REQUEST] Disabled info and texture for buttons
#1
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
Image
Reply
#2
Control.IsEnabled(id) might work for half of it
Reply
#3
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>.
Image
Reply
#4
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.
Reply
#5
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
Reply
#6
Yeah, I forgot that is for the focused control.

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

Logout Mark Read Team Forum Stats Members Help
[REQUEST] Disabled info and texture for buttons0