- 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:
+4
-4
@@ -205,14 +205,14 @@ function PetButtonPrototype:Update()
|
|||||||
self.isToken = isToken
|
self.isToken = isToken
|
||||||
self.tooltipSubtext = subtext
|
self.tooltipSubtext = subtext
|
||||||
self:SetChecked(isActive and 1 or 0)
|
self:SetChecked(isActive and 1 or 0)
|
||||||
if autoCastAllowed then
|
if autoCastAllowed and not autoCastEnabled then
|
||||||
self.autocastable:Show()
|
self.autocastable:Show()
|
||||||
else
|
self.autocast:Hide()
|
||||||
|
elseif autoCastAllowed and autoCastEnabled then
|
||||||
self.autocastable:Hide()
|
self.autocastable:Hide()
|
||||||
end
|
|
||||||
if autoCastEnabled then
|
|
||||||
self.autocast:Show()
|
self.autocast:Show()
|
||||||
else
|
else
|
||||||
|
self.autocastable:Hide()
|
||||||
self.autocast:Hide()
|
self.autocast:Hide()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -107,6 +107,10 @@ end
|
|||||||
function StanceBarMod:ApplyConfig()
|
function StanceBarMod:ApplyConfig()
|
||||||
if not self:IsEnabled() then return end
|
if not self:IsEnabled() then return end
|
||||||
self.bar:ApplyConfig(self.db.profile)
|
self.bar:ApplyConfig(self.db.profile)
|
||||||
|
|
||||||
|
if GetNumShapeshiftForms() == 0 then
|
||||||
|
self:Disable()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function StanceBarMod:ReassignBindings()
|
function StanceBarMod:ReassignBindings()
|
||||||
@@ -263,6 +267,7 @@ function StanceBar:UpdateStanceButtons()
|
|||||||
if updateBindings then
|
if updateBindings then
|
||||||
StanceBarMod:ReassignBindings()
|
StanceBarMod:ReassignBindings()
|
||||||
end
|
end
|
||||||
|
self.disabled = (GetNumShapeshiftForms() == 0) and true or nil
|
||||||
end
|
end
|
||||||
|
|
||||||
function StanceBar:OnEvent(event, ...)
|
function StanceBar:OnEvent(event, ...)
|
||||||
|
|||||||
Reference in New Issue
Block a user