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

Does anyone know these font names? or where i can find them in blizzards code.



  Reply With Quote
01-21-12, 01:45 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
http://wowprogramming.com/utils/xmlb...terJournal.xml

You should be able to find them in there.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
01-21-12, 03:37 PM   #3
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Problem solved! Thanks Seerah!

LUA Code:
  1. elseif AddOn == "Blizzard_EncounterJournal" then
  2.         for i = 1, 9 do
  3.            _G["EncounterJournalEncounterFrameInfoLootScrollFrameButton"..i.."ArmorClass"]:SetTextColor(1, 1, 1)
  4.            _G["EncounterJournalEncounterFrameInfoLootScrollFrameButton"..i.."ArmorClass"].SetTextColor = AftermathhUI.Func
  5.            _G["EncounterJournalEncounterFrameInfoLootScrollFrameButton"..i.."Slot"]:SetTextColor(1, 1, 1)
  6.            _G["EncounterJournalEncounterFrameInfoLootScrollFrameButton"..i.."Slot"].SetTextColor = AftermathhUI.Func
  7.            _G["EncounterJournalEncounterFrameInfoLootScrollFrameButton"..i.."Boss"]:SetTextColor(1, 1, 1)
  8.            _G["EncounterJournalEncounterFrameInfoLootScrollFrameButton"..i.."Boss"].SetTextColor = AftermathhUI.Func
  9.            _G["EncounterJournalEncounterFrameInfoLootScrollFrameButton"..i.."Name"]:SetTextColor(1, 1, 1)
  10.            _G["EncounterJournalEncounterFrameInfoLootScrollFrameButton"..i.."Name"].SetTextColor = AftermathhUI.Func
  11.         end
  12.         _G["EncounterJournalEncounterFrameInstanceFrameLoreScrollFrameScrollChildLore"]:SetTextColor(1, 1, 1)
  13.         _G["EncounterJournalEncounterFrameInfoDetailsScrollFrameScrollChildDescription"]:SetTextColor(1, 1, 1)
  14.         _G["EncounterJournalEncounterFrameInfoEncounterTitle"]:SetTextColor(1.0, 0.82, 0)
  15.  
  16.         hooksecurefunc("EncounterJournal_DisplayInstance", function()
  17.             local bossIndex = 1;
  18.             local name, description, bossID, _, link = EJ_GetEncounterInfoByIndex(bossIndex)
  19.             while bossID do
  20.                 if not _G["EncounterJournalBossButton"..bossIndex].reskinned then
  21.                     _G["EncounterJournalBossButton"..bossIndex].text:SetTextColor(1, 1, 1)
  22.                     _G["EncounterJournalBossButton"..bossIndex].text.SetTextColor = AftermathhUI.Func
  23.                 end
  24.                 bossIndex = bossIndex + 1
  25.                 name, description, bossID, _, link = EJ_GetEncounterInfoByIndex(bossIndex)
  26.             end
  27.         end)
  28.  
  29.         hooksecurefunc("EncounterJournal_ToggleHeaders", function()
  30.             for i = 1, 50 do
  31.                 if _G["EncounterJournalInfoHeader"..i] then
  32.                     if not _G["EncounterJournalInfoHeader"..i].reskinned then
  33.                         _G["EncounterJournalInfoHeader"..i].description:SetTextColor(1, 1, 1)
  34.                         _G["EncounterJournalInfoHeader"..i].button.title:SetTextColor(1.0, 0.82, 0)
  35.                         _G["EncounterJournalInfoHeader"..i].button.title.SetTextColor = AftermathhUI.Func
  36.                         _G["EncounterJournalInfoHeader"..i].button.expandedIcon:SetTextColor(1, 1, 1)
  37.                         _G["EncounterJournalInfoHeader"..i].button.expandedIcon.SetTextColor = AftermathhUI.Func
  38.                     end
  39.                 end                
  40.             end    
  41.         end)
  42.     end


Last edited by Aftermathhqt : 01-21-12 at 03:57 PM.
  Reply With Quote
01-21-12, 05:00 PM   #4
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
You should assign global lookups to local values, otherwise they are being imported each time you refer to them, which is slower.
  Reply With Quote
01-21-12, 05:02 PM   #5
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by Haleth View Post
You should assign global lookups to local values, otherwise they are being imported each time you refer to them, which is slower.
Hmm okey thanks.
  Reply With Quote
01-21-12, 10:40 PM   #6
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Assuming he's only running that code once (when the Blizzard_EncounterJournal addon loads) there's not really any point in "optimizing", especially when most of the globals he's looking up from dynamicaly constructed strings are only used one or two times. Creating local variables pointing to each one would greatly increase the size of the code (adding 1 line for every 2 or 3 existing lines), make it harder to read, and would not result in any observable performance gain.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Dungeon Journal Fonts.


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