Mercurial > wow > cyborg-mmo7
comparison WowObjects.lua @ 24:6906d8ffd580
Properly remove the key binding when emptying a button slot.
author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
---|---|
date | Thu, 25 Apr 2013 01:30:41 +0000 |
parents | 3b1c0b676583 |
children | b7074b47cfc7 |
comparison
equal
deleted
inserted
replaced
23:3b1c0b676583 | 24:6906d8ffd580 |
---|---|
45 | 45 |
46 return self | 46 return self |
47 end, | 47 end, |
48 | 48 |
49 ClearBinding = function(key) | 49 ClearBinding = function(key) |
50 local buttonFrame,parentFrame,name = CyborgMMO_CallbackFactory:AddCallback(CyborgMMO_WowObject.DoNothing) | 50 SetOverrideBinding(CyborgMMO_CallbackFactory.Frame, true, key, nil) |
51 SetOverrideBindingClick(parentFrame, true, key, name, "LeftButton") | |
52 end, | |
53 | |
54 DoNothing = function() | |
55 end, | 51 end, |
56 | 52 |
57 -- Static Methods -- | 53 -- Static Methods -- |
58 Create = function(objectType, detail, subdetail) | 54 Create = function(objectType, detail, subdetail) |
59 local object | 55 local object |