/Tukui/modules/skins/greeting.lua
http://github.com/Asphyxia/Tukui · Lua · 23 lines · 20 code · 3 blank · 0 comment · 4 complexity · c9c70ae14addfd1a252534ef46dfe486 MD5 · raw file
- local T, C, L = unpack(select(2, ...))
- local function LoadSkin()
- QuestFrameGreetingPanel:HookScript("OnShow", function()
- QuestFrameGreetingPanel:StripTextures()
- T.SkinButton(QuestFrameGreetingGoodbyeButton, true)
- GreetingText:SetTextColor(1, 1, 1)
- CurrentQuestsText:SetTextColor(1, 1, 0)
- QuestGreetingFrameHorizontalBreak:Kill()
- AvailableQuestsText:SetTextColor(1, 1, 0)
-
- for i=1, MAX_NUM_QUESTS do
- local button = _G["QuestTitleButton"..i]
- if button:GetFontString() then
- if button:GetFontString():GetText() and button:GetFontString():GetText():find("|cff000000") then
- button:GetFontString():SetText(string.gsub(button:GetFontString():GetText(), "|cff000000", "|cffFFFF00"))
- end
- end
- end
- end)
- end
- tinsert(T.SkinFuncs["Tukui"], LoadSkin)