Mercurial > wow > reaction
diff modules/PetAction.lua @ 147:901c91dc1bf2
Some refactoring of configmode/keybind handlers
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Thu, 07 May 2009 23:55:00 +0000 |
parents | 6e4a11b9d290 |
children | de1da46dadb3 |
line wrap: on
line diff
--- a/modules/PetAction.lua Thu Apr 30 16:51:43 2009 +0000 +++ b/modules/PetAction.lua Thu May 07 23:55:00 2009 +0000 @@ -15,9 +15,6 @@ ReAction:UpdateRevision("$Revision$") --- libraries -local KB = LibStub("LibKeyBound-1.0") - -- module declaration local moduleID = "PetAction" local module = ReAction:NewModule( moduleID ) @@ -56,10 +53,6 @@ ReAction.RegisterCallback(self, "OnEraseBar") ReAction.RegisterCallback(self, "OnRenameBar") ReAction.RegisterCallback(self, "OnConfigModeChanged") - - KB.RegisterCallback(self, "LIBKEYBOUND_ENABLED") - KB.RegisterCallback(self, "LIBKEYBOUND_DISABLED") - KB.RegisterCallback(self, "LIBKEYBOUND_MODE_COLOR_CHANGED","LIBKEYBOUND_ENABLED") end function module:OnEnable() @@ -171,23 +164,6 @@ end end -function module:LIBKEYBOUND_ENABLED(evt) - for _, buttons in pairs(self.buttons) do - for _, b in pairs(buttons) do - b:SetKeybindMode(true) - end - end -end - -function module:LIBKEYBOUND_DISABLED(evt) - for _, buttons in pairs(self.buttons) do - for _, b in pairs(buttons) do - b:SetKeybindMode(false) - end - end -end - - ---- Options ---- local Handler = { } local meta = { __index = Handler } @@ -232,7 +208,7 @@ args = { lockButtons = { name = L["Lock Buttons"], - desc = L["Prevents picking up/dragging actions.|nNOTE: This setting is overridden by the global setting in Blizzard's Action Buttons tab"], + desc = L["Prevents picking up/dragging actions (use SHIFT to override this behavior)"], order = 2, type = "toggle", get = "GetLockButtons",