Mercurial > wow > reaction
diff classes/VehicleExitButton.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/VehicleExitButton.lua Fri Nov 19 15:27:23 2010 -0800 +++ b/classes/VehicleExitButton.lua Fri Nov 19 23:06:24 2010 -0800 @@ -1,12 +1,27 @@ local addonName, addonTable = ... local ReAction = addonTable.ReAction +local L = ReAction.L local format = string.format -- -- VExitButton Button class -- +local buttonTypeID = "VehicleExit" local Super = ReAction.Button -local VExitButton = setmetatable( { }, { __index = Super } ) +local VExitButton = setmetatable( + { + defaultBarConfig = { + type = buttonTypeID , + btnWidth = 36, + btnHeight = 36, + btnRows = 1, + btnColumns = 1, + spacing = 3 + }, + + barType = L["Exit Vehicle Floater"], + }, + { __index = Super } ) ReAction.Button.VehicleExit = VExitButton function VExitButton:New( idx, config, bar )