add option to always show xp bar

This commit is contained in:
shagu
2016-09-18 23:36:15 +02:00
parent 3ae579bb72
commit 445d56f8a8
3 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -30,6 +30,7 @@ pfUI:RegisterModule("xpbar", function ()
end)
pfUI.xp:SetScript("OnUpdate",function()
if pfUI_config.panel.xp.showalways == "1" then return end
if pfUI.xp:GetAlpha() == 0 or pfUI.xp.mouseover == true then return end
if not pfUI.xp.tick then
pfUI.xp.tick = GetTime() + 0.01
@@ -109,12 +110,12 @@ pfUI:RegisterModule("xpbar", function ()
pfUI.rep.bar:SetStatusBarColor((color.r + .5) * .5, (color.g + .5) * .5, (color.b + .5) * .5, 1)
pfUI.rep:SetAlpha(1)
pfUI.rep.tick = GetTime() + 3.00
end
end
end)
pfUI.rep:SetScript("OnUpdate",function()
if pfUI_config.panel.xp.showalways == "1" then return end
if pfUI.rep:GetAlpha() == 0 or pfUI.rep.mouseover == true then return end
if not pfUI.rep.tick then
pfUI.rep.tick = GetTime() + 0.01