diff modules/ReAction_PetAction/ReAction_PetAction.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_PetAction/ReAction_PetAction.lua	Mon Apr 28 21:08:35 2008 +0000
+++ b/modules/ReAction_PetAction/ReAction_PetAction.lua	Mon Apr 28 23:34:17 2008 +0000
@@ -30,6 +30,14 @@
 
   ReAction:RegisterOptions("global", self, {
   })
+
+  ReAction:RegisterOptions("bar", self, {
+    type = "group",
+    name = L["Pet Buttons"],
+    hidden = "BarOptionsHidden",
+    args = {
+    }
+  })
 end
 
 function module:OnEnable()
@@ -163,6 +171,11 @@
   end
 end
 
+---- Options handlers ----
+function module:BarOptionsHidden(bar)
+  return bar.config.type ~= moduleID
+end
+
 
 
 -- use-count of action IDs