diff modules/ReAction_Action/ReAction_Action.lua @ 59:7430a8dd4e90

Added modular per-bar options
author Flick <flickerstreak@gmail.com>
date Mon, 28 Apr 2008 23:34:17 +0000
parents 88283658fec4
children 44649a10378d
line wrap: on
line diff
--- a/modules/ReAction_Action/ReAction_Action.lua	Mon Apr 28 21:08:35 2008 +0000
+++ b/modules/ReAction_Action/ReAction_Action.lua	Mon Apr 28 23:34:17 2008 +0000
@@ -36,6 +36,14 @@
       set  = function(info, val) module:SetHideEmptyButtons(val) end,
     }
   })
+
+  ReAction:RegisterOptions("bar", self, {
+    type = "group",
+    name = L["Action Buttons"],
+    hidden = "BarOptionsHidden",
+    args = {
+    }
+  })
 end
 
 function module:OnEnable()
@@ -170,6 +178,11 @@
 end
 
 
+---- Options handlers ----
+function module:BarOptionsHidden(bar)
+  return bar.config.type ~= moduleID
+end
+
 
 -- use-count of action IDs
 local nActionIDs = 120