diff ReAction.lua @ 225:19fd228d9241

Add ConfigMode support
author Flick
date Wed, 09 Mar 2011 14:30:24 -0800
parents c4b134512c50
children 741c4f9b251e
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
+