Skip to content

Commit

Permalink
fix: activation overlays in classic
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Jul 27, 2024
1 parent 40e4e6e commit f5dabbd
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ else
local overlay = container.overlay

if overlay then
overlay:Show();
if overlay.animOut:IsPlaying() then
overlay.animOut:Stop();
overlay.animIn:Play();
end
else
overlay = CreateFrame("Frame", nil, UIParent, "ActionBarButtonSpellActivationAlert");
overlay = CreateFrame("Frame", nil, container, "ActionBarButtonSpellActivationAlert");
container.overlay = overlay

-- Override scripts from the blizzard template:
Expand All @@ -157,8 +157,9 @@ else
overlay:SetSize(frameWidth * 1.4, frameHeight * 1.4);
overlay:SetPoint("TOPLEFT", container, "TOPLEFT", -frameWidth * 0.2, frameHeight * 0.2);
overlay:SetPoint("BOTTOMRIGHT", container, "BOTTOMRIGHT", frameWidth * 0.2, -frameHeight * 0.2);
overlay.animIn:Play();
end

overlay.animIn:Play();
end

function IconContainer:HideOverlayGlow()
Expand Down

0 comments on commit f5dabbd

Please sign in to comment.