Mercurial > wow > reaction
comparison ActionButton.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 | 276165a0e860 |
comparison
equal
deleted
inserted
replaced
276:36a29870bf34 | 277:4e325f1ea6e1 |
---|---|
192 | 192 |
193 ReAction.Button.Action = Action | 193 ReAction.Button.Action = Action |
194 ReAction:RegisterBarType(Action, true) | 194 ReAction:RegisterBarType(Action, true) |
195 | 195 |
196 function Action:New( config, bar, idx, idHint ) | 196 function Action:New( config, bar, idx, idHint ) |
197 local name = format("ReAction_%s_Action_%d",bar:GetName(),idx) | 197 self = Super.New(self, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) |
198 | |
199 self = Super.New(self, name, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) | |
200 self.barConfig = bar:GetConfig() | 198 self.barConfig = bar:GetConfig() |
201 | 199 |
202 local f = self:GetFrame() | 200 local f = self:GetFrame() |
203 local barFrame = bar:GetFrame() | 201 local barFrame = bar:GetFrame() |
204 | 202 |