Mercurial > wow > reaction
comparison PetActionButton.lua @ 284:499ca4edf033 1.1 beta 8
Fixed Pet action buttons not accepting click-hold drags
author | Flick |
---|---|
date | Sat, 11 Jun 2011 10:54:52 -0700 |
parents | 2098dba4baf5 |
children | 276165a0e860 |
comparison
equal
deleted
inserted
replaced
283:f2ed8a8e2320 | 284:499ca4edf033 |
---|---|
29 end | 29 end |
30 ]] | 30 ]] |
31 | 31 |
32 local _onReceiveDrag = -- function(self, button, kind, value, ...) | 32 local _onReceiveDrag = -- function(self, button, kind, value, ...) |
33 [[ | 33 [[ |
34 if kind then -- pet spells on the cursor return nil from GetCursorInfo(), which is very strange | 34 if kind == "petaction" then |
35 return "petaction", self:GetAttribute("action") | |
36 else | |
35 return kind, value, ... | 37 return kind, value, ... |
36 end | 38 end |
37 return "petaction", self:GetAttribute("action") | |
38 ]] | 39 ]] |
39 | 40 |
40 -- | 41 -- |
41 -- private | 42 -- private |
42 -- | 43 -- |