local IsResting = IsResting;
local UnitXP, UnitXPMax, GetXPExhaustion = UnitXP, UnitXPMax, GetXPExhaustion;
local CTimerAfter = C_Timer.After;
local IsResting = IsResting;
local UnitXP, UnitXPMax, GetXPExhaustion = UnitXP, UnitXPMax, GetXPExhaustion;
local CTimerAfter = C_Timer.After;
frame.base = frame:CreateTexture(nil, "BACKGROUND");
frame.base:SetAllPoints();
frame.base:SetColorTexture(0, 0, 0, 0.5);
frame.base = frame:CreateTexture(nil, "BACKGROUND");
frame.base:SetAllPoints();
frame.base:SetColorTexture(0, 0, 0, 0.5);
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();
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:SetScript("OnEnter", function(frame) frame.text:Show(); ExhaustionToolTipText(); end);
- frame:SetScript("OnLeave", function(frame) frame.text:Hide(); GameTooltip:Hide(); end);
+ frame:SetScript("OnEnter", function(frame) frame.text:Show(); end);
+ frame:SetScript("OnLeave", function(frame) frame.text:Hide(); end);