PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Tukui/modules/skins/greeting.lua

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