comparison 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
comparison
equal deleted inserted replaced
90:7cabc8ac6c16 91:c2504a8b996c
147 end 147 end
148 148
149 149
150 ---- Options ---- 150 ---- Options ----
151 function module:GetBarOptions(bar) 151 function module:GetBarOptions(bar)
152 return { 152 if bar.config.type == moduleID then
153 type = "group", 153 return {
154 name = L["Pet Buttons"], 154 type = "group",
155 hidden = function() return bar.config.type ~= moduleID end, 155 name = L["Pet Buttons"],
156 args = { 156 args = {
157 }
157 } 158 }
158 } 159 end
159 end 160 end
160 161
161 162
162 163
163 ------ Button class ------ 164 ------ Button class ------
324 else 325 else
325 self.acTex:Hide(); 326 self.acTex:Hide();
326 end 327 end
327 328
328 if autoCastEnabled then 329 if autoCastEnabled then
329 self.acModel:Show(); 330 AutoCastShine_AutoCastStart(self.acModel)
330 else 331 else
331 self.acModel:Hide(); 332 AutoCastShine_AutoCastStop(self.acModel)
332 end 333 end
333 334
334 if texture then 335 if texture then
335 if GetPetActionsUsable() then 336 if GetPetActionSlotUsable(id) then
336 SetDesaturation(self.icon,nil) 337 SetDesaturation(self.icon,nil)
337 else 338 else
338 SetDesaturation(self.icon,1) 339 SetDesaturation(self.icon,1)
339 end 340 end
340 self.icon:Show(); 341 self.icon:Show();