Mercurial > wow > reaction
comparison classes/VehicleExitButton.lua @ 223:c4b134512c50
Move RegisterBarType from modules to button classes
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Mon, 22 Nov 2010 10:25:18 -0800 |
parents | d08a74e86c96 |
children | 158c9299185b |
comparison
equal
deleted
inserted
replaced
222:d08a74e86c96 | 223:c4b134512c50 |
---|---|
21 }, | 21 }, |
22 | 22 |
23 barType = L["Exit Vehicle Floater"], | 23 barType = L["Exit Vehicle Floater"], |
24 }, | 24 }, |
25 { __index = Super } ) | 25 { __index = Super } ) |
26 | |
26 ReAction.Button.VehicleExit = VExitButton | 27 ReAction.Button.VehicleExit = VExitButton |
28 ReAction:RegisterBarType(VExitButton) | |
27 | 29 |
28 function VExitButton:New( idx, config, bar ) | 30 function VExitButton:New( idx, config, bar ) |
29 local name = format("ReAction_%s_VehicleExit_%d",bar:GetName(),idx) | 31 local name = format("ReAction_%s_VehicleExit_%d",bar:GetName(),idx) |
30 | 32 |
31 self = Super.New(self, name, config, bar, idx, "SecureFrameTemplate, ActionButtonTemplate", "Button") | 33 self = Super.New(self, name, config, bar, idx, "SecureFrameTemplate, ActionButtonTemplate", "Button") |