diff modules/Stance.lua @ 179:bf64e71701e2

Remove support for hunter aspects in stance bar. Remove option to disable DK/paladin auras in stance bar. (drycoded)
author Flick <flickerstreak@gmail.com>
date Wed, 20 Oct 2010 23:40:41 +0000
parents df68b5a40490
children e63aefb8a555
line wrap: on
line diff
--- a/modules/Stance.lua	Wed Oct 20 18:58:36 2010 +0000
+++ b/modules/Stance.lua	Wed Oct 20 23:40:41 2010 +0000
@@ -30,8 +30,6 @@
 
   self.buttons = { }
 
-  ReAction:RegisterOptions(self, self:GetOptions())
-
   ReAction.RegisterCallback(self, "OnCreateBar", "OnRefreshBar")
   ReAction.RegisterCallback(self, "OnDestroyBar")
   ReAction.RegisterCallback(self, "OnRefreshBar")
@@ -45,7 +43,7 @@
       type = moduleID ,
       defaultButtonSize = 36,
       defaultBarRows = 1,
-      defaultBarCols = 8,
+      defaultBarCols = 6,
       defaultBarSpacing = 3
     })
 
@@ -127,53 +125,3 @@
   end
 end
 
-
----- options ----
-function module:GetOptions()
-  return {
-    stance = 
-    {
-      name = L["Stance Buttons"],
-      type = "group",
-      args = {
-        showAspects = {
-          name = L["Show Aspects"],
-          desc = L["Show Hunter aspects as stances"],
-          order = 1,
-          width = "double",
-          type = "toggle",
-          set = function(info,value) self.db.profile.showHunterAspects = value; self:RefreshAll() end,
-          get = function() return self.db.profile.showHunterAspects end,
-        },
-        hideMonkeyHawk = {
-          name = L["Auto-hide Monkey/Hawk"],
-          desc = L["Hide Aspect of the Monkey and Aspect of the Hawk, only when the hunter knows Aspect of the Dragonhawk"],
-          order = 2,
-          width = "double",
-          type = "toggle",
-          set = function(info,value) self.db.profile.hideMonkeyHawk = value; self:RefreshAll() end,
-          get = function() return self.db.profile.hideMonkeyHawk end,
-          disabled = function() return self.db.profile.showHunterAspects == false end,
-        },
-        hidePresences = {
-          name = L["Hide Presences"],
-          desc = L["Do not show Death Knight Presences as stances"],
-          order = 3,
-          width = "double",
-          type = "toggle",
-          set = function(info,value) self.db.profile.hideDKPresences = value; self:RefreshAll() end,
-          get = function() return self.db.profile.hideDKPresences end,
-        },
-        hideAuras = {
-          name = L["Hide Auras"],
-          desc = L["Do not show Paladin Auras as stances"],
-          order = 4,
-          width = "double",
-          type = "toggle",
-          set = function(info,value) self.db.profile.hidePaladinAuras = value; self:RefreshAll() end,
-          get = function() return self.db.profile.hidePaladinAuras end,
-        },
-      }
-    }
-  }
-end