Reskin Frame problem - WoWInterface
Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-16-14, 12:20 PM   #1
A Frostmaul Preserver
Mayron's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 266
Reskin Frame problem

Hi all,

I wanted to try adding a skinning module and almost finished. I am just finishing some bugs and wanted help with one of them. I know there is Aurora but wanted to make it integrated with my UI so that I am able to control the settings better.

I cannot seem to change the text color of the following text for quest titles (It is the one that shows up black when I am trying to make it white):

This is the code I am using:

Lua Code:
  1. local function ChangeTextColor(str, color)
  2.     if (color == "white") then
  3.         str:SetTextColor(1,1,1)
  4.     elseif (color == "red") then
  5.         str:SetTextColor(RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b)
  7.     elseif (color == "yellow") then
  9.     elseif (color == "orange") then
  11.     end
  12.     str:SetShadowColor(0, 0, 0, 0.6)
  13.     str:SetShadowOffset(1, -1)
  14. end
  16. for i = 1, 31 do
  17.     if (_G["GossipTitleButton"..i]) then
  18.         ChangeTextColor(_G["GossipTitleButton"..i]:GetFontString(), "white")
  19.     end
  20. end

The function is pretty basic.

Thanks for reading!
EDIT: I also tried "_G["GossipTitleButton"..i]:SetNormalFontObject(GameFontNormal) " but that does not work either.

EDIT: Fixed but got anther issue.
I found out I had to edit this global which I found in the GossipFrame.lua file:

Lua Code:
  1. NORMAL_QUEST_DISPLAY = "|cffffffff%s|r"

Last edited by Mayron : 08-17-14 at 06:16 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Reskin Frame problem

Thread Tools
Display Modes

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