git
/
wowui.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f8f03f1
)
f8af9dd - Refresh exp bar after load screens
author
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Thu, 19 Apr 2018 01:49:24 +0000
committer
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Thu, 19 Apr 2018 01:49:24 +0000
OmaAB/ExpBar.lua
patch
|
blob
|
history
diff --git
a/OmaAB/ExpBar.lua
b/OmaAB/ExpBar.lua
index
021ac76
..
ca2f5a0
100644
(file)
--- 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();
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);
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_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);
-- 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);