Skip to content

Commit

Permalink
fixed a bug where the bag menu animation would sometimes get stuck in…
Browse files Browse the repository at this point in the history
… the wrong state.
  • Loading branch information
Cidan committed Dec 5, 2023
1 parent 96d9250 commit ce21897
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frames/bag.lua
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,9 @@ function bagFrame:Create(kind)
end
bagButton:SetScript("OnEnter", function()
if not database:GetFirstTimeMenu() then
anig:Stop()
highlightTex:SetAlpha(1)
anig:Restart()
anig:Play()
end
GameTooltip:SetOwner(bagButton, "ANCHOR_LEFT")
if kind == const.BAG_KIND.BACKPACK then
Expand All @@ -360,6 +361,7 @@ function bagFrame:Create(kind)
bagButton:SetScript("OnLeave", function()
GameTooltip:Hide()
if not database:GetFirstTimeMenu() then
anig:Stop()
highlightTex:SetAlpha(0)
anig:Restart(true)
end
Expand Down

0 comments on commit ce21897

Please sign in to comment.