Mercurial > wow > reaction
comparison MultiCastButton.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 | 7a9e82c0df15 |
comparison
equal
deleted
inserted
replaced
| 276:36a29870bf34 | 277:4e325f1ea6e1 |
|---|---|
| 339 | 339 |
| 340 if idx < 1 then | 340 if idx < 1 then |
| 341 error("invalid index") | 341 error("invalid index") |
| 342 end | 342 end |
| 343 | 343 |
| 344 local name = format("ReAction_%s_Totem_%d",bar:GetName(),idx) | 344 self = Super.New(self, btnConfig, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) |
| 345 | |
| 346 self = Super.New(self, name, btnConfig, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) | |
| 347 | 345 |
| 348 local barFrame = bar:GetFrame() | 346 local barFrame = bar:GetFrame() |
| 349 local f = self:GetFrame() | 347 local f = self:GetFrame() |
| 350 | 348 |
| 351 -- attributes | 349 -- attributes |
