Mercurial > wow > reaction
comparison BagButton.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 | 36a29870bf34 |
comparison
equal
deleted
inserted
replaced
256:5ab04f393b0b | 259:c918ff9ac787 |
---|---|
78 | 78 |
79 -- secure handlers | 79 -- secure handlers |
80 -- (none) | 80 -- (none) |
81 | 81 |
82 -- event registration | 82 -- event registration |
83 f:EnableMouse(true) | |
84 f:RegisterForClicks("LeftButtonUp","RightButtonUp") | |
85 f:RegisterEvent("UPDATE_BINDINGS") | 83 f:RegisterEvent("UPDATE_BINDINGS") |
86 | 84 |
87 -- frame setup | 85 -- frame setup |
88 f:SetID(self:GetBagID()) | 86 f:SetID(self:GetBagID()) |
89 | 87 |