Fandom

WoWWiki

Talk:API FontInstance SetTextColor

Back to page

104,642pages on
this wiki
Add New Page

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Removed in 3.0 - possible work around Edit

It appears this method has been removed in 3.0 as the game now returns an error stating the method is nil.

A work around I have come up with for now is to use the "|c" hex colors in conjunction with SetText.

Example:

Old: frame:SetTextColor(1, 1, 0, 1)

New: frame:SetText("|cFFFFFF00"..frame:GetText().."|r")

--SavageX378 (talk) 07:06, 16 October 2008 (UTC)


No, FontInstance:SetTextColor still exists. See for example FrameXML\ZoneText.xml's "ZoneTextString" object and the :SetTextColor calls in ZoneText.lua. Perhaps you are thinking of some other class? farmbuyer (talk) 18:29, 27 July 2009 (UTC)

Also on Fandom

Random Wiki