From 55538182d77fe3d210b40127a9cdba38bcd2c312 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 13 Nov 2016 12:54:23 +0100 Subject: [PATCH] xpar: fix rested bar overlap --- modules/xpbar.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/xpbar.lua b/modules/xpbar.lua index 89fe8e5c..8aeb7031 100644 --- a/modules/xpbar.lua +++ b/modules/xpbar.lua @@ -17,7 +17,6 @@ pfUI:RegisterModule("xpbar", function () pfUI.xp.restedbar:Show() pfUI.xp.restedbar:SetMinMaxValues(0, UnitXPMax("player")) pfUI.xp.restedbar:SetValue(UnitXP("player") + GetXPExhaustion()) - pfUI.xp.restedbar:SetAlpha(pfUI.xp:GetAlpha()/2) else pfUI.xp.restedbar:Hide() end @@ -39,7 +38,6 @@ pfUI:RegisterModule("xpbar", function () if GetTime() >= pfUI.xp.tick then pfUI.xp.tick = nil pfUI.xp:SetAlpha(pfUI.xp:GetAlpha() - .05) - pfUI.xp.restedbar:SetAlpha(pfUI.xp:GetAlpha()/2) end end) @@ -47,8 +45,6 @@ pfUI:RegisterModule("xpbar", function () pfUI.xp:SetScript("OnEnter", function() pfUI.xp.mouseover = true pfUI.xp:SetAlpha(1) - pfUI.xp.restedbar:SetAlpha(pfUI.xp:GetAlpha()/2) - end) pfUI.xp:SetScript("OnLeave", function() @@ -61,6 +57,7 @@ pfUI:RegisterModule("xpbar", function () pfUI.xp.bar:ClearAllPoints() pfUI.xp.bar:SetPoint("TOPLEFT", pfUI.xp, "TOPLEFT", 3, -3) pfUI.xp.bar:SetPoint("BOTTOMRIGHT", pfUI.xp, "BOTTOMRIGHT", -3, 3) + pfUI.xp.bar:SetFrameStrata("MEDIUM") pfUI.xp.bar:SetStatusBarColor(.25,.25,1,1) pfUI.xp.bar:SetMinMaxValues(0, 100) pfUI.xp.bar:SetOrientation("VERTICAL") @@ -72,7 +69,7 @@ pfUI:RegisterModule("xpbar", function () pfUI.xp.restedbar:SetPoint("TOPLEFT", pfUI.xp, "TOPLEFT", 3, -3) pfUI.xp.restedbar:SetPoint("BOTTOMRIGHT", pfUI.xp, "BOTTOMRIGHT", -3, 3) pfUI.xp.restedbar:SetFrameStrata("HIGH") - pfUI.xp.restedbar:SetStatusBarColor(1,.25,1,1) + pfUI.xp.restedbar:SetStatusBarColor(1,.25,1,.5) pfUI.xp.restedbar:SetMinMaxValues(0, 100) pfUI.xp.restedbar:SetOrientation("VERTICAL")