Thread Tools Display Modes
01-12-11, 11:27 AM   #1
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Achievement Font.

Hello i have a problem here, the Achievement font that is black, won't let me color it for some reason any ideas?

Code:
for _, font in pairs({
 
    _G['AchievementPointsFont'],
    _G['AchievementPointsFontSmall'],
    _G['AchievementDateFont'],
	
}) do
    font:SetFont('Fonts\\ARIALN.ttf', 12, 'THINOUTLINE')
	font:SetTextColor(1, 1, 1)
end
 
for _, font in pairs({

    _G['AchievementDescriptionFont'],
    _G['AchievementCriteriaFont'],
	_G['MailTextFontNormal'],
	_G['CombatLogFont'],
	
}) do
   font:SetFont('Fonts\\ARIALN.ttf', 12, 'THINOUTLINE')
   font:SetTextColor(1, 1, 1)
end
thanks.
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_011211_182515.jpg
Views:	764
Size:	1.95 MB
ID:	5591  
  Reply With Quote
01-12-11, 11:34 AM   #2
aiikachi
A Cyclonian
 
aiikachi's Avatar
Join Date: Jan 2007
Posts: 44
I don't know if this will work with what you're trying to do, but have you tested adding
font.SetTextColor = function () end
?
__________________
  Reply With Quote
01-12-11, 11:52 AM   #3
Ailae
A Rage Talon Dragon Guard
 
Ailae's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 318
Seems like Blizzard recolors the text depending on various things.

I *think* this is the relevant part.
https://github.com/tekkub/wow-ui-sou...lua#L1614-1819

Suppose you could try hooking that function and setting your colors accordingly. Or try aiikachis method.
__________________
Oh, the simulated horror!
  Reply With Quote
01-13-11, 02:24 AM   #4
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by aiikachi View Post
I don't know if this will work with what you're trying to do, but have you tested adding
font.SetTextColor = function () end
?
Okey, i will try it tonight, thanks.

i saw somthing other intressting this: http://wowprogramming.com/utils/xmlb...FontStyles.xml

i think there is somthing wrong by blizzard side honestly :P
  Reply With Quote
01-13-11, 11:33 AM   #5
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Hmm, didnt work that well :/
  Reply With Quote
01-13-11, 11:56 AM   #6
Ailae
A Rage Talon Dragon Guard
 
Ailae's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 318
What would be wrong on Blizzards side? They change the color according to the status (completed, etc).
__________________
Oh, the simulated horror!
  Reply With Quote
01-13-11, 01:07 PM   #7
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Hmm okey. :<
  Reply With Quote
01-13-11, 02:07 PM   #8
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 284
Have you tried changing GameFontBlack? I can't test atm (@work), but I'm curious...
  Reply With Quote
01-13-11, 03:18 PM   #9
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Okey, im gonna try
  Reply With Quote
01-13-11, 03:21 PM   #10
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Nop, didnt work
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Achievement Font.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off