comparison PetActionButton.lua @ 281:2098dba4baf5

Merge
author Flick
date Wed, 11 May 2011 16:20:48 -0700
parents 5b9c0164a491 b3c01452d395
children 499ca4edf033
comparison
equal deleted inserted replaced
279:5b9c0164a491 281:2098dba4baf5
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 name = 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")