Mercurial > wow > reaction
comparison classes/StanceButton.lua @ 234:0e20f65375d5
Reworked button creation to not use goofy event driven semantics.
| author | Flick |
|---|---|
| date | Tue, 22 Mar 2011 17:05:51 -0700 |
| parents | 158c9299185b |
| children |
comparison
equal
deleted
inserted
replaced
| 233:9b9f5fc84d34 | 234:0e20f65375d5 |
|---|---|
| 50 { __index = Super } ) | 50 { __index = Super } ) |
| 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( idx, config, bar, idHint ) | 55 function Stance:New( config, bar, idx, idHint ) |
| 56 local name = format("ReAction_%s_Stance_%d",bar:GetName(),idx) | 56 local name = format("ReAction_%s_Stance_%d",bar:GetName(),idx) |
| 57 | 57 |
| 58 self = Super.New(self, name, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) | 58 self = Super.New(self, name, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) |
| 59 | 59 |
| 60 local f = self:GetFrame() | 60 local f = self:GetFrame() |
