Mercurial > wow > reaction
comparison classes/StanceButton.lua @ 222:d08a74e86c96
un-namespace totem, pet, stance, vehicle exit
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Sun, 21 Nov 2010 14:42:38 -0800 |
parents | e63aefb8a555 |
children | c4b134512c50 |
comparison
equal
deleted
inserted
replaced
221:bb13624de7e1 | 222:d08a74e86c96 |
---|---|
47 barType = L["Stance Bar"], | 47 barType = L["Stance Bar"], |
48 }, | 48 }, |
49 { __index = Super } ) | 49 { __index = Super } ) |
50 ReAction.Button.Stance = Stance | 50 ReAction.Button.Stance = Stance |
51 | 51 |
52 function Stance:New( idx, moduleConfig, bar, idHint ) | 52 function Stance:New( idx, config, bar, idHint ) |
53 local name = format("ReAction_%s_Stance_%d",bar:GetName(),idx) | 53 local name = format("ReAction_%s_Stance_%d",bar:GetName(),idx) |
54 | 54 |
55 self = Super.New(self, name, moduleConfig.buttons[bar:GetName()][idx], bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) | 55 self = Super.New(self, name, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) |
56 self.moduleConfig = moduleConfig | |
57 | 56 |
58 local f = self:GetFrame() | 57 local f = self:GetFrame() |
59 local barFrame = bar:GetFrame() | 58 local barFrame = bar:GetFrame() |
60 local config = self:GetConfig() | 59 local config = self:GetConfig() |
61 | 60 |