Mercurial > wow > reaction
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 157:e77f716af1b7 | 158:d2f289c3bae6 |
|---|---|
| 66 self = Super.New(self, name, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) | 66 self = Super.New(self, name, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) |
| 67 | 67 |
| 68 local f = self:GetFrame() | 68 local f = self:GetFrame() |
| 69 if not f.autoCastTexture then | 69 if not f.autoCastTexture then |
| 70 -- store autocast stuff with the frame for recycling | 70 -- store autocast stuff with the frame for recycling |
| 71 f.autoCastShine = CreateFrame("Frame",name.."Shine",f,"AutoCastShineTemplate") | |
| 72 local tex = f:CreateTexture(nil,"OVERLAY") | 71 local tex = f:CreateTexture(nil,"OVERLAY") |
| 73 tex:SetTexture([[Interface\Buttons\UI-AutoCastableOverlay]]) | 72 tex:SetTexture([[Interface\Buttons\UI-AutoCastableOverlay]]) |
| 74 tex:SetHeight(58) | 73 tex:SetHeight(58) |
| 75 tex:SetWidth(58) | 74 tex:SetWidth(58) |
| 76 tex:SetPoint("CENTER") | 75 tex:SetPoint("CENTER") |
| 77 f.autoCastTexture = tex | 76 f.autoCastTexture = tex |
| 77 f.autoCastShine = CreateFrame("Frame",name.."Shine",f,"AutoCastShineTemplate") -- create after autocast texture so it's on top | |
| 78 -- move the cooldown around | 78 -- move the cooldown around |
| 79 local cd = self.frames.cooldown | 79 local cd = self.frames.cooldown |
| 80 cd:ClearAllPoints() | 80 cd:ClearAllPoints() |
| 81 cd:SetWidth(33) | 81 cd:SetWidth(33) |
| 82 cd:SetHeight(33) | 82 cd:SetHeight(33) |
