From f8af9dd773208e04ccc15d3dbc814dd0727788e8 Mon Sep 17 00:00:00 2001 From: Aleksi Blinnikka Date: Thu, 19 Apr 2018 04:49:24 +0300 Subject: [PATCH 1/1] Refresh exp bar after load screens --- OmaAB/ExpBar.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OmaAB/ExpBar.lua b/OmaAB/ExpBar.lua index 021ac76..ca2f5a0 100644 --- a/OmaAB/ExpBar.lua +++ b/OmaAB/ExpBar.lua @@ -57,7 +57,7 @@ local function expBar() frame:SetScript("OnEvent", function(self, event) if event == "PLAYER_XP_UPDATE" or event == "PLAYER_LEVEL_UP" then updateXP(); - elseif event == "PLAYER_UPDATE_RESTING" then + elseif event == "PLAYER_UPDATE_RESTING" or event == "PLAYER_ENTERING_WORLD" then if IsResting() then running = true; CTimerAfter(6, updater); @@ -70,6 +70,7 @@ local function expBar() frame:RegisterEvent("PLAYER_XP_UPDATE"); frame:RegisterEvent("PLAYER_LEVEL_UP"); frame:RegisterEvent("PLAYER_UPDATE_RESTING"); + frame:RegisterEvent("PLAYER_ENTERING_WORLD"); -- from FrameXML/MainMenuBar.lua frame:SetScript("OnEnter", function(frame) frame.text:Show(); ExhaustionToolTipText(); end); frame:SetScript("OnLeave", function(frame) frame.text:Hide(); GameTooltip:Hide(); end); -- 2.39.5