Mercurial > wow > reaction
comparison PetActionButton.lua @ 277:4e325f1ea6e1
Construct the button name in the base class
author | Flick |
---|---|
date | Wed, 11 May 2011 11:27:36 -0700 |
parents | 36a29870bf34 |
children | 3dcfc0aad875 5b9c0164a491 |
comparison
equal
deleted
inserted
replaced
276:36a29870bf34 | 277:4e325f1ea6e1 |
---|---|
77 | 77 |
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 local name = format("ReAction_%s_PetAction_%d",bar:GetName(),idx) | 82 self = Super.New(self, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) |
83 | |
84 self = Super.New(self, name, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) | |
85 | 83 |
86 local f = self:GetFrame() | 84 local f = self:GetFrame() |
87 if not f.autoCastTexture then | 85 if not f.autoCastTexture then |
88 -- store autocast stuff with the frame for recycling | 86 -- store autocast stuff with the frame for recycling |
89 local tex = f:CreateTexture(nil,"OVERLAY") | 87 local tex = f:CreateTexture(nil,"OVERLAY") |