Quantcast

update to wrath version

Ou Junhui [09-03-22 - 04:15]
update to wrath version
Filename
rButtonTemplate/core.lua
diff --git a/rButtonTemplate/core.lua b/rButtonTemplate/core.lua
index df4ffc1..d5f0e04 100644
--- a/rButtonTemplate/core.lua
+++ b/rButtonTemplate/core.lua
@@ -316,6 +316,7 @@ function rButtonTemplate:StyleItemButton(button,cfg)

   local buttonName = button:GetName()
   local icon = _G[buttonName.."IconTexture"]
+  local quest = _G[buttonName.."IconQuestTexture"]
   local count = _G[buttonName.."Count"]
   local stock = _G[buttonName.."Stock"]
   local searchOverlay = _G[buttonName.."SearchOverlay"]
@@ -342,6 +343,9 @@ function rButtonTemplate:StyleItemButton(button,cfg)
   SetupFontString(count,cfg.count)
   SetupFontString(stock,cfg.stock)

+  --quest
+  if quest then quest:SetAlpha(0) end
+
   button.__styled = true

 end