Mercurial > wow > reaction
diff VehicleExitButton.lua @ 299:e337b39dc491
Add ExtraActionButton support
author | Flick |
---|---|
date | Wed, 14 Nov 2012 16:38:53 -0800 |
parents | 5b9c0164a491 |
children |
line wrap: on
line diff
--- a/VehicleExitButton.lua Wed Nov 14 16:35:18 2012 -0800 +++ b/VehicleExitButton.lua Wed Nov 14 16:38:53 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