Mercurial > wow > reaction
diff ActionButton.lua @ 259:c918ff9ac787
Add option to make buttons activate on mouse/key down
author | Flick |
---|---|
date | Mon, 25 Apr 2011 11:43:42 -0700 |
parents | 65f2805957a0 |
children | b40e2aaccfa0 |
line wrap: on
line diff
--- a/ActionButton.lua Mon Apr 04 13:04:11 2011 -0700 +++ b/ActionButton.lua Mon Apr 25 11:43:42 2011 -0700 @@ -230,9 +230,7 @@ f:SetScript("OnReceiveDrag", function(frame) self:OnReceiveDrag() end) -- event registration - f:EnableMouse(true) f:RegisterForDrag("LeftButton", "RightButton") - f:RegisterForClicks("AnyUp") for _, evt in pairs(eventList) do f:RegisterEvent(evt) end