Originally Posted by Gello
If your checkbutton inherits UICheckButtonTemplate, this is in UIPanelTemplates.xml and it looks like:
So you could set the color by doing CheckButtonText:SetTextColor(.5,.5,.5) or CheckButtonText:SetTextColor(1,1,1) depending on its state after it's checked.
I assume you're using that since a checkbutton that doesn't inherit anything has no text associated with it.
|
hmmm, my CheckButtonTemplates inherits from the UICheckButtonTemplate........
kaka.. i know the :SetTextColor() method. but i got 38 checkbuttons......and that means tons of IF...ELSE statement....
i just wanna know why the :SetDisabledTextColor() method doesn't work
i assume it can set the color automaticly by the name of this method