Thread: GameFontBlack
View Single Post
02-27-11, 08:44 PM   #20
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Nothing indicates that it's secure code. You should be able to just replace if you want to.

Perhaps just set the text color the way you want it and recode the function so it doesn't bother with it, something like this

lua Code:
  1. -- Set once and forget it
  2. QuestInfoDescriptionText:SetTextColor(1, 1, 1)
  3. QuestInfoObjectivesText:SetTextColor(1, 1, 1)
  4. QuestInfoGroupSize:SetTextColor(1, 1, 1)
  5. QuestInfoRewardText:SetTextColor(1, 1, 1)
  6.  
  7. QuestInfoTitleHeader:SetTextColor(0.95, 0.95, 0)
  8. QuestInfoDescriptionHeader:SetTextColor(0.95, 0.95, 0)
  9. QuestInfoObjectivesHeader:SetTextColor(0.95, 0.95, 0)
  10. QuestInfoRewardsHeader:SetTextColor(0.95, 0.95, 0)
  11.  
  12. QuestInfoItemChooseText:SetTextColor(1, 1, 1)
  13. QuestInfoItemReceiveText:SetTextColor(1, 1, 1)
  14. QuestInfoSpellLearnText:SetTextColor(1, 1, 1)
  15. QuestInfoXPFrameReceiveText:SetTextColor(1, 1, 1)
  16.  
  17. -- Replace existing UI function
  18. function QuestInfo_Display(template, parentFrame, acceptButton, material)
  19.     local lastFrame, shownFrame, bottomShownFrame; 
  20.     local elementsTable = template.elements;
  21.     local bottomShownFrame;
  22.    
  23.     QuestInfoFrame.questLog = template.questLog;
  24.     QuestInfoFrame.chooseItems = template.chooseItems;
  25.     QuestInfoFrame.tooltip = template.tooltip; 
  26.     QuestInfoFrame.acceptButton = acceptButton;
  27.  
  28.     for i = 1, #elementsTable, 3 do
  29.         shownFrame, bottomShownFrame = elementsTable[i]();
  30.         if ( shownFrame ) then
  31.             shownFrame:SetParent(parentFrame);
  32.             if ( lastFrame ) then
  33.                 shownFrame:SetPoint("TOPLEFT", lastFrame, "BOTTOMLEFT", elementsTable[i+1], elementsTable[i+2]);
  34.             else
  35.                 shownFrame:SetPoint("TOPLEFT", parentFrame, "TOPLEFT", elementsTable[i+1], elementsTable[i+2]);        
  36.             end
  37.             lastFrame = bottomShownFrame or shownFrame;
  38.         end
  39.     end
  40. end
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote