Mercurial > wow > reaction
diff VehicleExitButton.lua @ 305:0211bcdfab70 stable
Merge 1.1 beta 12 to stable
author | Flick |
---|---|
date | Wed, 14 Nov 2012 16:47:27 -0800 |
parents | e337b39dc491 |
children |
line wrap: on
line diff
--- a/VehicleExitButton.lua Fri Aug 05 16:28:13 2011 -0700 +++ b/VehicleExitButton.lua Wed Nov 14 16:47:27 2012 -0800 @@ -28,7 +28,7 @@ ReAction.Button.VehicleExit = VExitButton ReAction:RegisterBarType(VExitButton) -function VExitButton:New( config, bar, idx ) +function VExitButton:New( config, bar, idx, idHint ) self = Super.New(self, config, bar, idx, "SecureFrameTemplate, ActionButtonTemplate", "Button") -- frame setup @@ -36,6 +36,9 @@ self.frames.icon:SetTexture("Interface\\Vehicles\\UI-Vehicles-Button-Exit-Up") self.frames.icon:SetTexCoord(0.140625, 0.859375, 0.140625, 0.859375) + self:SetActionIDPool("vehicle-exit",1) + self:AcquireActionID(nil, idHint, true) + -- attribute setup -- (none) @@ -66,14 +69,6 @@ return 1 end -function VExitButton:AcquireActionID() - -- don't use pool -end - -function VExitButton:ReleaseActionID() - -- don't use pool -end - function VExitButton:Refresh() Super.Refresh(self) -- it seems that setscale kills the texcoord, have to refresh it