Mercurial > wow > reaction
diff modules/Stance.lua @ 218:e63aefb8a555
Demodularization of buttons
- register class instead of config
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Fri, 19 Nov 2010 23:06:24 -0800 |
parents | bf64e71701e2 |
children | d08a74e86c96 |
line wrap: on
line diff
--- a/modules/Stance.lua Fri Nov 19 15:27:23 2010 -0800 +++ b/modules/Stance.lua Fri Nov 19 23:06:24 2010 -0800 @@ -38,19 +38,11 @@ end function module:OnEnable() - ReAction:RegisterBarType(L["Stance Bar"], - { - type = moduleID , - defaultButtonSize = 36, - defaultBarRows = 1, - defaultBarCols = 6, - defaultBarSpacing = 3 - }) - + ReAction:RegisterBarType(Button) end function module:OnDisable() - ReAction:UnregisterBarType(L["Stance Bar"]) + ReAction:UnregisterBarType(Button) end function module:OnDestroyBar(event, bar, name)