comparison ActionButton.lua @ 264:d2e55b61e5e6 stable

Merge 1.1 beta 6 to stable
author Flick
date Fri, 06 May 2011 15:52:21 -0700
parents c918ff9ac787
children b40e2aaccfa0
comparison
equal deleted inserted replaced
258:a7d2efb6ffc9 264:d2e55b61e5e6
228 f:SetScript("OnUpdate", function(frame, elapsed) self:OnUpdate(elapsed) end) 228 f:SetScript("OnUpdate", function(frame, elapsed) self:OnUpdate(elapsed) end)
229 f:SetScript("OnDragStart", function(frame) self:OnDragStart() end) 229 f:SetScript("OnDragStart", function(frame) self:OnDragStart() end)
230 f:SetScript("OnReceiveDrag", function(frame) self:OnReceiveDrag() end) 230 f:SetScript("OnReceiveDrag", function(frame) self:OnReceiveDrag() end)
231 231
232 -- event registration 232 -- event registration
233 f:EnableMouse(true)
234 f:RegisterForDrag("LeftButton", "RightButton") 233 f:RegisterForDrag("LeftButton", "RightButton")
235 f:RegisterForClicks("AnyUp")
236 for _, evt in pairs(eventList) do 234 for _, evt in pairs(eventList) do
237 f:RegisterEvent(evt) 235 f:RegisterEvent(evt)
238 end 236 end
239 237
240 f.action = config.actionID -- need this to support silly ActionButton_UpdateFlyout. Should not taint anything anymore. 238 f.action = config.actionID -- need this to support silly ActionButton_UpdateFlyout. Should not taint anything anymore.