Mercurial > wow > reaction
comparison classes/StanceButton.lua @ 223:c4b134512c50
Move RegisterBarType from modules to button classes
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Mon, 22 Nov 2010 10:25:18 -0800 |
parents | d08a74e86c96 |
children | 158c9299185b |
comparison
equal
deleted
inserted
replaced
222:d08a74e86c96 | 223:c4b134512c50 |
---|---|
45 }, | 45 }, |
46 | 46 |
47 barType = L["Stance Bar"], | 47 barType = L["Stance Bar"], |
48 }, | 48 }, |
49 { __index = Super } ) | 49 { __index = Super } ) |
50 | |
50 ReAction.Button.Stance = Stance | 51 ReAction.Button.Stance = Stance |
52 ReAction:RegisterBarType(Stance) | |
51 | 53 |
52 function Stance:New( idx, config, bar, idHint ) | 54 function Stance:New( idx, config, bar, idHint ) |
53 local name = format("ReAction_%s_Stance_%d",bar:GetName(),idx) | 55 local name = format("ReAction_%s_Stance_%d",bar:GetName(),idx) |
54 | 56 |
55 self = Super.New(self, name, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) | 57 self = Super.New(self, name, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) |