diff modules/ReAction_HideBlizzard/ReAction_HideBlizzard.lua @ 60:44649a10378d

Fixed options handling to create a separate table for each bar instead of a shared table with proxy handler. Also simplified options registration and moved some options around.
author Flick <flickerstreak@gmail.com>
date Sat, 10 May 2008 00:08:01 +0000
parents 8b81d4b3e73d
children da8ba8783924
line wrap: on
line diff
--- a/modules/ReAction_HideBlizzard/ReAction_HideBlizzard.lua	Mon Apr 28 23:34:17 2008 +0000
+++ b/modules/ReAction_HideBlizzard/ReAction_HideBlizzard.lua	Sat May 10 00:08:01 2008 +0000
@@ -29,23 +29,25 @@
 
   self.hiddenFrame = CreateFrame("Frame")
   self.hiddenFrame:Hide()
+
+  ReAction:RegisterOptions(self, {
+      hideBlizzard = {
+        type = "toggle",
+        handler = self,
+        name = L["Hide Blizzard Action Bars"],
+        desc = L["Hide the default main bar and extra action bars"],
+        get  = "IsHidden",
+        set  = function(info,value) self:SetHidden(value) end,
+        disabled = InCombatLockdown
+      },
+    }, true) -- global
+
 end
 
 function module:OnEnable()
   if self.db.profile.hide then
     self:HideAll(true)
   end
-  ReAction:RegisterOptions("global", self, {
-    hideBlizzard = {
-      type = "toggle",
-      handler = self,
-      name = L["Hide Blizzard Action Bars"],
-      desc = L["Hide the default main bar and extra action bars"],
-      get  = "IsHidden",
-      set  = function(info,value) self:SetHidden(value) end,
-      disabled = InCombatLockdown
-    }
-  })
 
   -- reroute blizzard action bar config to ReAction config window
   InterfaceOptionsActionBarsPanel:HookScript("OnShow",