PageRenderTime 112ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 68ms app.codeStats 0ms

/Tukui/modules/skins/reforging.lua

http://github.com/Asphyxia/Tukui
Lua | 36 lines | 28 code | 8 blank | 0 comment | 1 complexity | e640f2adc935569b101c0076107498d8 MD5 | raw file
 1local T, C, L = unpack(select(2, ...))
 2
 3local function LoadSkin()
 4	ReforgingFrame:StripTextures()
 5	ReforgingFrame:SetTemplate("Transparent")
 6	
 7	ReforgingFrameTopInset:StripTextures()
 8	ReforgingFrameInset:StripTextures()
 9	ReforgingFrameBottomInset:StripTextures()
10	
11	T.SkinButton(ReforgingFrameRestoreButton, true)
12	T.SkinButton(ReforgingFrameReforgeButton, true)
13	
14	T.SkinDropDownBox(ReforgingFrameFilterOldStat, 180)
15	T.SkinDropDownBox(ReforgingFrameFilterNewStat, 180)
16	
17	ReforgingFrameItemButton:StripTextures()
18	ReforgingFrameItemButton:SetTemplate("Transparent", true)
19	ReforgingFrameItemButton:StyleButton()
20	ReforgingFrameItemButtonIconTexture:ClearAllPoints()
21	ReforgingFrameItemButtonIconTexture:Point("TOPLEFT", 2, -2)
22	ReforgingFrameItemButtonIconTexture:Point("BOTTOMRIGHT", -2, 2)
23	
24	hooksecurefunc("ReforgingFrame_Update", function(self)
25		local currentReforge, icon, name, quality, bound, cost = GetReforgeItemInfo()
26		if icon then
27			ReforgingFrameItemButtonIconTexture:SetTexCoord(.08, .92, .08, .92)
28		else
29			ReforgingFrameItemButtonIconTexture:SetTexture(nil)
30		end
31	end)
32	
33	T.SkinCloseButton(ReforgingFrameCloseButton)
34end
35
36T.SkinFuncs["Blizzard_ReforgingUI"] = LoadSkin