Mercurial > wow > reaction
diff classes/PetActionButton.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 | d08a74e86c96 |
line wrap: on
line diff
--- a/classes/PetActionButton.lua Fri Nov 19 15:27:23 2010 -0800 +++ b/classes/PetActionButton.lua Fri Nov 19 23:06:24 2010 -0800 @@ -56,8 +56,22 @@ -- -- Pet Action Button class -- +local buttonTypeID = "PetAction" local Super = ReAction.Button -local Pet = setmetatable( { }, { __index = Super } ) +local Pet = setmetatable( + { + defaultBarConfig = { + type = buttonTypeID, + btnWidth = 30, + btnHeight = 30, + btnRows = 1, + btnColumns = 10, + spacing = 8 + }, + + barType = L["Pet Action Bar"], + }, + { __index = Super } ) ReAction.Button.PetAction = Pet function Pet:New( idx, config, bar, idHint )