From b387c1d3e733dc84134369ed5a492a3a0c31819f Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 6 Apr 2020 21:08:41 +0200 Subject: [PATCH] xpbar: do not reset values on config change --- modules/xpbar.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/xpbar.lua b/modules/xpbar.lua index b478dedb..0aa78445 100644 --- a/modules/xpbar.lua +++ b/modules/xpbar.lua @@ -70,9 +70,7 @@ pfUI:RegisterModule("xpbar", "vanilla:tbc", function () local cr, cg, cb, ca = pfUI.api.GetStringColor(xp_color) b.bar:SetStatusBarColor(cr,cg,cb,ca) - b.bar:SetMinMaxValues(0, 100) b.bar:SetOrientation(mode) - b.bar:SetValue(0) b.restedbar = b.restedbar or CreateFrame("StatusBar", nil, b) b.restedbar:SetStatusBarTexture(pfUI.media["img:bar"]) @@ -81,9 +79,7 @@ pfUI:RegisterModule("xpbar", "vanilla:tbc", function () b.restedbar:SetFrameStrata("MEDIUM") local cr, cg, cb, ca = pfUI.api.GetStringColor(rest_color) b.restedbar:SetStatusBarColor(cr,cg,cb,ca) - b.restedbar:SetMinMaxValues(0, 100) b.restedbar:SetOrientation(mode) - b.restedbar:SetValue(0) -- auto hide b:EnableMouse(true)