From ce2189719667bd563955a75c6daa3f84d5002e45 Mon Sep 17 00:00:00 2001 From: Antonio Lobato Date: Mon, 4 Dec 2023 20:39:47 -0800 Subject: [PATCH] fixed a bug where the bag menu animation would sometimes get stuck in the wrong state. --- frames/bag.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frames/bag.lua b/frames/bag.lua index efa18b39..02175fd8 100644 --- a/frames/bag.lua +++ b/frames/bag.lua @@ -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 @@ -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