comparison modules/ReAction_PetAction/ReAction_PetAction.lua @ 85:913857b7e123

Changed format of button frame names
author Flick <flickerstreak@gmail.com>
date Fri, 27 Jun 2008 18:40:06 +0000
parents 42ec2938d65a
children fc83b3f5b322
comparison
equal deleted inserted replaced
84:8119fbe25939 85:913857b7e123
196 function Button:New( bar, idx, config ) 196 function Button:New( bar, idx, config )
197 -- create new self 197 -- create new self
198 self = setmetatable( { }, { __index = Button } ) 198 self = setmetatable( { }, { __index = Button } )
199 self.bar, self.idx, self.config = bar, idx, config 199 self.bar, self.idx, self.config = bar, idx, config
200 200
201 local name = config.name or ("ReAction_%s_Pet_%d"):format(bar:GetName(),idx) 201 local name = config.name or ("ReAction_%s_%s_%d"):format(bar:GetName(),moduleID,idx)
202 config.name = name 202 config.name = name
203 self.name = name 203 self.name = name
204 config.actionID = ActionIDList[config.actionID] -- gets a free one if none configured 204 config.actionID = ActionIDList[config.actionID] -- gets a free one if none configured
205 205
206 -- have to recycle frames with the same name: 206 -- have to recycle frames with the same name: