Mercurial > wow > reaction
diff classes/BagButton.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 | df68b5a40490 |
children | bb13624de7e1 |
line wrap: on
line diff
--- a/classes/BagButton.lua Fri Nov 19 15:27:23 2010 -0800 +++ b/classes/BagButton.lua Fri Nov 19 23:06:24 2010 -0800 @@ -15,8 +15,23 @@ local CursorCanGoInSlot = CursorCanGoInSlot -- class declarations +local buttonTypeID = "Bag" local Super = ReAction.Button -local BagBase = setmetatable( { }, { __index = Super } ) +local BagBase = setmetatable( + { + defaultBarConfig = { + type = buttonTypeID, + btnWidth = 30, + btnHeight = 30, + btnRows = 1, + btnColumns = 6, + spacing = 4 + }, + + barType = L["Bag Bar"], + }, + { __index = Super } ) + local Bag = setmetatable( { }, { __index = BagBase } ) local Backpack = setmetatable( { }, { __index = BagBase } ) local Keyring = setmetatable( { }, { __index = BagBase } )