- hide the pet-bar AutoCastable texture when AutoCast is enabled (works around a crazy ButtonFacade design that showed it on top - back to blizzard behavior)

- tweak stance bar code for classes that dont actually have a stance (yet)
This commit is contained in:
Hendrik Leppkes
2008-06-07 15:10:49 +00:00
parent e3f1ea1dba
commit 90f2b872d8
2 changed files with 9 additions and 4 deletions
+5
View File
@@ -107,6 +107,10 @@ end
function StanceBarMod:ApplyConfig()
if not self:IsEnabled() then return end
self.bar:ApplyConfig(self.db.profile)
if GetNumShapeshiftForms() == 0 then
self:Disable()
end
end
function StanceBarMod:ReassignBindings()
@@ -263,6 +267,7 @@ function StanceBar:UpdateStanceButtons()
if updateBindings then
StanceBarMod:ReassignBindings()
end
self.disabled = (GetNumShapeshiftForms() == 0) and true or nil
end
function StanceBar:OnEvent(event, ...)