Mercurial > wow > reaction
diff classes/Button.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 | 8ba8ab8bf6dd |
children | 158c9299185b |
line wrap: on
line diff
--- a/classes/Button.lua Fri Nov 19 15:27:23 2010 -0800 +++ b/classes/Button.lua Fri Nov 19 23:06:24 2010 -0800 @@ -22,7 +22,18 @@ end -- Button class -local Button = { } +local buttonTypeID = "Button" +local Button = { + defaultBarConfig = { + type = buttonTypeID, + btnWidth = 36, + btnHeight = 36, + btnRows = 1, + btnColumns = 12, + spacing = 3 + }, + barType = L["Button Bar"] +} ReAction.Button = Button -- export to ReAction @@ -105,6 +116,14 @@ return self.name end +function Button:GetDefaultBarConfig() + return self.defaultBarConfig +end + +function Button:GetBarType() + return self.barType +end + function Button:GetConfig() return self.config end