Mercurial > wow > reaction
changeset 225:19fd228d9241
Add ConfigMode support
author | Flick |
---|---|
date | Wed, 09 Mar 2011 14:30:24 -0800 |
parents | 82757c2c1ea5 |
children | 76932cdb3d57 |
files | ReAction.lua |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ReAction.lua Fri Feb 25 09:56:45 2011 -0800 +++ b/ReAction.lua Wed Mar 09 14:30:24 2011 -0800 @@ -354,3 +354,18 @@ function ReAction:GetKeybindMode( mode ) return self.kbMode end + + +-- ConfigMode support +CONFIGMODE_CALLBACKS = CONFIGMODE_CALLBACKS or {} + +function CONFIGMODE_CALLBACKS.ReAction( action, mode ) + if action == "ON" then + ReAction:SetConfigMode(true) + elseif action == "OFF" then + ReAction:SetConfigMode(false) + elseif action == "LISTMODES" then + -- no modes + end +end +