/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

  1. local T, C, L = unpack(select(2, ...))
  2. local function LoadSkin()
  3. ReforgingFrame:StripTextures()
  4. ReforgingFrame:SetTemplate("Transparent")
  5. ReforgingFrameTopInset:StripTextures()
  6. ReforgingFrameInset:StripTextures()
  7. ReforgingFrameBottomInset:StripTextures()
  8. T.SkinButton(ReforgingFrameRestoreButton, true)
  9. T.SkinButton(ReforgingFrameReforgeButton, true)
  10. T.SkinDropDownBox(ReforgingFrameFilterOldStat, 180)
  11. T.SkinDropDownBox(ReforgingFrameFilterNewStat, 180)
  12. ReforgingFrameItemButton:StripTextures()
  13. ReforgingFrameItemButton:SetTemplate("Transparent", true)
  14. ReforgingFrameItemButton:StyleButton()
  15. ReforgingFrameItemButtonIconTexture:ClearAllPoints()
  16. ReforgingFrameItemButtonIconTexture:Point("TOPLEFT", 2, -2)
  17. ReforgingFrameItemButtonIconTexture:Point("BOTTOMRIGHT", -2, 2)
  18. hooksecurefunc("ReforgingFrame_Update", function(self)
  19. local currentReforge, icon, name, quality, bound, cost = GetReforgeItemInfo()
  20. if icon then
  21. ReforgingFrameItemButtonIconTexture:SetTexCoord(.08, .92, .08, .92)
  22. else
  23. ReforgingFrameItemButtonIconTexture:SetTexture(nil)
  24. end
  25. end)
  26. T.SkinCloseButton(ReforgingFrameCloseButton)
  27. end
  28. T.SkinFuncs["Blizzard_ReforgingUI"] = LoadSkin