Mercurial > wow > reaction
comparison PetActionButton.lua @ 278:3dcfc0aad875
Pet action button needs name for auxiliary frames
| author | Flick |
|---|---|
| date | Wed, 11 May 2011 15:13:38 -0700 |
| parents | 4e325f1ea6e1 |
| children | b3c01452d395 |
comparison
equal
deleted
inserted
replaced
| 277:4e325f1ea6e1 | 278:3dcfc0aad875 |
|---|---|
| 78 ReAction.Button.PetAction = Pet | 78 ReAction.Button.PetAction = Pet |
| 79 ReAction:RegisterBarType(Pet) | 79 ReAction:RegisterBarType(Pet) |
| 80 | 80 |
| 81 function Pet:New( config, bar, idx, idHint ) | 81 function Pet:New( config, bar, idx, idHint ) |
| 82 self = Super.New(self, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) | 82 self = Super.New(self, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) |
| 83 | |
| 84 local fname = self:GetFrame():GetName() | |
| 83 | 85 |
| 84 local f = self:GetFrame() | 86 local f = self:GetFrame() |
| 85 if not f.autoCastTexture then | 87 if not f.autoCastTexture then |
| 86 -- store autocast stuff with the frame for recycling | 88 -- store autocast stuff with the frame for recycling |
| 87 local tex = f:CreateTexture(nil,"OVERLAY") | 89 local tex = f:CreateTexture(nil,"OVERLAY") |
