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:
local function ChangeTextColor(str, color)
if (color == "white") then
str:SetTextColor(1,1,1)
elseif (color == "red") then
str:SetTextColor(RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b)
elseif (color == "yellow") then
str:SetTextColor(YELLOW_FONT_COLOR.r, YELLOW_FONT_COLOR.g, YELLOW_FONT_COLOR.b)
elseif (color == "orange") then
str:SetTextColor(ORANGE_FONT_COLOR.r, ORANGE_FONT_COLOR.g, ORANGE_FONT_COLOR.b)
end
str:SetShadowColor(0, 0, 0, 0.6)
str:SetShadowOffset(1, -1)
end
for i = 1, 31 do
if (_G["GossipTitleButton"..i]) then
ChangeTextColor(_G["GossipTitleButton"..i]:GetFontString(), "white")
end
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:
NORMAL_QUEST_DISPLAY = "|cffffffff%s|r"