Mercurial > wow > reaction
diff classes/StanceButton.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/classes/StanceButton.lua Fri Nov 19 15:27:23 2010 -0800 +++ b/classes/StanceButton.lua Fri Nov 19 23:06:24 2010 -0800 @@ -31,8 +31,22 @@ -- -- Stance Button class -- +local buttonTypeID = "Stance" local Super = ReAction.Button -local Stance = setmetatable( { }, { __index = Super } ) +local Stance = setmetatable( + { + defaultConfig = { + type = buttonTypeID, + btnHeight = 36, + btnWidth = 36, + btnRows = 1, + btnColumns = 6, + spacing = 3 + }, + + barType = L["Stance Bar"], + }, + { __index = Super } ) ReAction.Button.Stance = Stance function Stance:New( idx, moduleConfig, bar, idHint )