diff classes/PetActionButton.lua @ 158:d2f289c3bae6

Fixed pet autocast shine being below autocast texture
author Flick <flickerstreak@gmail.com>
date Sat, 13 Jun 2009 00:13:52 +0000
parents b68be4b6d129
children 5257073138e8
line wrap: on
line diff
--- a/classes/PetActionButton.lua	Fri Jun 12 21:44:44 2009 +0000
+++ b/classes/PetActionButton.lua	Sat Jun 13 00:13:52 2009 +0000
@@ -68,13 +68,13 @@
   local f = self:GetFrame()
   if not f.autoCastTexture then
     -- store autocast stuff with the frame for recycling
-    f.autoCastShine = CreateFrame("Frame",name.."Shine",f,"AutoCastShineTemplate")
     local tex = f:CreateTexture(nil,"OVERLAY")
     tex:SetTexture([[Interface\Buttons\UI-AutoCastableOverlay]])
     tex:SetHeight(58)
     tex:SetWidth(58)
     tex:SetPoint("CENTER")
     f.autoCastTexture = tex
+    f.autoCastShine = CreateFrame("Frame",name.."Shine",f,"AutoCastShineTemplate") -- create after autocast texture so it's on top
     -- move the cooldown around
     local cd = self.frames.cooldown
     cd:ClearAllPoints()