diff modules/ReAction_PetAction/ReAction_PetAction.lua @ 91:c2504a8b996c

Bug fixes - action buttons resetting to 6 pixels - stray prints - config panels for action buttons not showing all panels - fixed multi-ID typo - fixed autocast model on pet buttons
author Flick <flickerstreak@gmail.com>
date Fri, 17 Oct 2008 03:59:55 +0000
parents 7cabc8ac6c16
children 567a885cdfad
line wrap: on
line diff
--- a/modules/ReAction_PetAction/ReAction_PetAction.lua	Wed Oct 15 16:29:41 2008 +0000
+++ b/modules/ReAction_PetAction/ReAction_PetAction.lua	Fri Oct 17 03:59:55 2008 +0000
@@ -149,13 +149,14 @@
 
 ---- Options ----
 function module:GetBarOptions(bar)
-  return {
-    type = "group",
-    name = L["Pet Buttons"],
-    hidden = function() return bar.config.type ~= moduleID end,
-    args = {
+  if bar.config.type == moduleID then
+    return {
+      type = "group",
+      name = L["Pet Buttons"],
+      args = {
+      }
     }
-  }
+  end
 end
 
 
@@ -326,13 +327,13 @@
   end
 
   if autoCastEnabled then
-    self.acModel:Show();
+    AutoCastShine_AutoCastStart(self.acModel)
   else
-    self.acModel:Hide();
+    AutoCastShine_AutoCastStop(self.acModel)
   end
 
   if texture then
-    if GetPetActionsUsable() then
+    if GetPetActionSlotUsable(id) then
       SetDesaturation(self.icon,nil)
     else
       SetDesaturation(self.icon,1)