/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

  1. local T, C, L = unpack(select(2, ...))
  2. local function LoadSkin()
  3. QuestFrameGreetingPanel:HookScript("OnShow", function()
  4. QuestFrameGreetingPanel:StripTextures()
  5. T.SkinButton(QuestFrameGreetingGoodbyeButton, true)
  6. GreetingText:SetTextColor(1, 1, 1)
  7. CurrentQuestsText:SetTextColor(1, 1, 0)
  8. QuestGreetingFrameHorizontalBreak:Kill()
  9. AvailableQuestsText:SetTextColor(1, 1, 0)
  10. for i=1, MAX_NUM_QUESTS do
  11. local button = _G["QuestTitleButton"..i]
  12. if button:GetFontString() then
  13. if button:GetFontString():GetText() and button:GetFontString():GetText():find("|cff000000") then
  14. button:GetFontString():SetText(string.gsub(button:GetFontString():GetText(), "|cff000000", "|cffFFFF00"))
  15. end
  16. end
  17. end
  18. end)
  19. end
  20. tinsert(T.SkinFuncs["Tukui"], LoadSkin)