Mercurial > wow > reaction
comparison StanceButton.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 | 5b9c0164a491 |
comparison
equal
deleted
inserted
replaced
276:36a29870bf34 | 277:4e325f1ea6e1 |
---|---|
51 | 51 |
52 ReAction.Button.Stance = Stance | 52 ReAction.Button.Stance = Stance |
53 ReAction:RegisterBarType(Stance) | 53 ReAction:RegisterBarType(Stance) |
54 | 54 |
55 function Stance:New( config, bar, idx, idHint ) | 55 function Stance:New( config, bar, idx, idHint ) |
56 local name = format("ReAction_%s_Stance_%d",bar:GetName(),idx) | 56 self = Super.New(self, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) |
57 | |
58 self = Super.New(self, name, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) | |
59 | 57 |
60 local f = self:GetFrame() | 58 local f = self:GetFrame() |
61 local barFrame = bar:GetFrame() | 59 local barFrame = bar:GetFrame() |
62 local config = self:GetConfig() | 60 local config = self:GetConfig() |
63 | 61 |