Skip to content

Commit

Permalink
handle AutoCastOverlay
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuller committed May 18, 2024
1 parent 203adff commit c60b1f3
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Dominos/bars/petBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,19 @@ function PetActionButtonMixin:Update()

self:SetChecked(isActive and true)

self.AutoCastable:SetShown(autoCastAllowed and true)

if autoCastEnabled then
AutoCastShine_AutoCastStart(self.AutoCastShine)
local autoCastOverlay = self.AutoCastOverlay
if autoCastOverlay then
autoCastOverlay:SetShown(autoCastAllowed)
autoCastOverlay:ShowAutoCastEnabled(autoCastEnabled)
else
AutoCastShine_AutoCastStop(self.AutoCastShine)
self.AutoCastable:SetShown(autoCastAllowed and true)

if autoCastEnabled then
AutoCastShine_AutoCastStart(self.AutoCastShine)
else
AutoCastShine_AutoCastStop(self.AutoCastShine)
end
end

if texture then
Expand Down

0 comments on commit c60b1f3

Please sign in to comment.