Mercurial > wow > reaction
diff classes/MultiCastButton.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 | b9efc447fa27 |
children | d08a74e86c96 |
line wrap: on
line diff
--- a/classes/MultiCastButton.lua Fri Nov 19 15:27:23 2010 -0800 +++ b/classes/MultiCastButton.lua Fri Nov 19 23:06:24 2010 -0800 @@ -300,9 +300,23 @@ -- Inherits implementation methods from Action button class, but circumvents the constructor -- and redefines/removes some methods. -- +local buttonTypeID = "Totem" local Super = ReAction.Button local Action = ReAction.Button.Action -local MultiCast = setmetatable( { }, { __index = Action } ) +local MultiCast = setmetatable( + { + defaultBarConfig = { + type = buttonTypeID, + btnWidth = 36, + btnHeight = 36, + btnRows = 1, + btnColumns = 6, + spacing = 3 + }, + + barType = L["Totem Bar"], + }, + { __index = Action } ) ReAction.Button.MultiCast = MultiCast function MultiCast:New( idx, btnConfig, bar )