clarify button vs fontinstance
(clarify button vs fontinstance) |
|||
| Line 13: | Line 13: | ||
;12/5/08 | ;12/5/08 | ||
::Note that | ::Note that Button:SetTextColor was deleted in 3.0, but FontInstance:SetTextColor remains. To set the button text color, you need to set the button font object, then get a copy of it, then modify the color of the new object and then assign the copy back to the button. For example: | ||
:button:SetNormalFontObject("GameFontHighlight"); | :button:SetNormalFontObject("GameFontHighlight"); | ||