diff StanceButton.lua @ 258:a7d2efb6ffc9 stable

Merge 1.1 beta 5 to stable
author Flick
date Tue, 12 Apr 2011 16:07:21 -0700
parents 46b59a9ded76
children c918ff9ac787
line wrap: on
line diff
--- a/StanceButton.lua	Tue Apr 12 16:06:31 2011 -0700
+++ b/StanceButton.lua	Tue Apr 12 16:07:21 2011 -0700
@@ -35,7 +35,7 @@
 local Super = ReAction.Button
 local Stance = setmetatable(
   { 
-    defaultConfig = { 
+    defaultBarConfig = { 
       type = buttonTypeID,
       btnHeight = 36,
       btnWidth = 36,
@@ -61,9 +61,8 @@
   local barFrame = bar:GetFrame()
   local config = self:GetConfig()
 
-  -- set up the base stance ID
-  self:SetActionIDPool("stance",8)
-  config.stanceID = self:AcquireActionID(config.stanceID, idHint, true)
+  -- set up the stance ID
+  config.stanceID = config.stanceID or idx
 
   -- attribute setup
   f:SetAttribute("type","spell")
@@ -101,6 +100,14 @@
   return self.config.stanceID
 end
 
+function Stance:AcquireActionID()
+  -- don't use pool
+end
+
+function Stance:ReleaseActionID()
+  -- don't use pool
+end
+
 function Stance:UpdateAction()
   if InCombatLockdown() then
     self.updatePending = true