Thread Tools Display Modes
07-11-15, 08:28 AM   #1
gempir
A Black Drake
 
gempir's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2015
Posts: 84
Adventure Guide font

I'm trying to change the font of the Adventure guide because it looks like this:



I thought I can do this:

Lua Code:
  1. EncounterJournalSuggestFrame.Suggestion1.centerDisplay.description.text:SetFont(NORMAL,12, "THINOUTLINE")

But I'm getting an error because EncounterJournalSuggestFrame is supposedly nil.

This is what the framestack looks like for it.


Any Ideas how to fix the font?
  Reply With Quote
07-11-15, 08:38 AM   #2
Miiru
A Flamescale Wyrmkin
 
Miiru's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 138
You need to wait till the encounterjournal is loaded

Lua Code:
  1. --[[Registering Events]]
  2.  
  3. local frame = CreateFrame("FRAME");
  4. frame:RegisterEvent("ADDON_LOADED")
  5.  
  6. function frame:OnEvent(event, arg1)
  7.  
  8. if event == "ADDON_LOADED" and arg1 == "Blizzard_EncounterJournal"  then
  9.  
  10. --your code here
  11.  
  12. end
  13. end
  14.  
  15. frame:SetScript("OnEvent", frame.OnEvent);
__________________
◘◘ Author of MiirGui Texture Pack - [Core] [Blue] [Grey] ◘◘
  Reply With Quote
07-11-15, 08:44 AM   #3
gempir
A Black Drake
 
gempir's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2015
Posts: 84
Thanks, I didn't think of that.

Works perfectly
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Adventure Guide 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