/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
- local T, C, L = unpack(select(2, ...))
- local function LoadSkin()
- ReforgingFrame:StripTextures()
- ReforgingFrame:SetTemplate("Transparent")
-
- ReforgingFrameTopInset:StripTextures()
- ReforgingFrameInset:StripTextures()
- ReforgingFrameBottomInset:StripTextures()
-
- T.SkinButton(ReforgingFrameRestoreButton, true)
- T.SkinButton(ReforgingFrameReforgeButton, true)
-
- T.SkinDropDownBox(ReforgingFrameFilterOldStat, 180)
- T.SkinDropDownBox(ReforgingFrameFilterNewStat, 180)
-
- ReforgingFrameItemButton:StripTextures()
- ReforgingFrameItemButton:SetTemplate("Transparent", true)
- ReforgingFrameItemButton:StyleButton()
- ReforgingFrameItemButtonIconTexture:ClearAllPoints()
- ReforgingFrameItemButtonIconTexture:Point("TOPLEFT", 2, -2)
- ReforgingFrameItemButtonIconTexture:Point("BOTTOMRIGHT", -2, 2)
-
- hooksecurefunc("ReforgingFrame_Update", function(self)
- local currentReforge, icon, name, quality, bound, cost = GetReforgeItemInfo()
- if icon then
- ReforgingFrameItemButtonIconTexture:SetTexCoord(.08, .92, .08, .92)
- else
- ReforgingFrameItemButtonIconTexture:SetTexture(nil)
- end
- end)
-
- T.SkinCloseButton(ReforgingFrameCloseButton)
- end
- T.SkinFuncs["Blizzard_ReforgingUI"] = LoadSkin