mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 19:19:59 +00:00
xpbar: add option to not overlap the xpbars
This commit is contained in:
+10
-2
@@ -199,6 +199,14 @@ end
|
||||
b.position = t == "XP" and C.panel.xp.xp_position or C.panel.xp.rep_position
|
||||
b.display = t == "XP" and C.panel.xp.xp_display or C.panel.xp.rep_display
|
||||
|
||||
local barStrata = "LOW"
|
||||
local restedStrata = "MEDIUM"
|
||||
|
||||
if C.panel.xp.dont_overlap == "1" then
|
||||
barStrata = "MEDIUM"
|
||||
restedStrata = "LOW"
|
||||
end
|
||||
|
||||
if t == "XP" and C.panel.xp.xp_always == "1" then
|
||||
b.always = true
|
||||
elseif t == "REP" and C.panel.xp.rep_always == "1" then
|
||||
@@ -220,7 +228,7 @@ end
|
||||
b.bar:SetStatusBarTexture(pfUI.media["img:bar"])
|
||||
b.bar:ClearAllPoints()
|
||||
b.bar:SetAllPoints(b)
|
||||
b.bar:SetFrameStrata("LOW")
|
||||
b.bar:SetFrameStrata(barStrata)
|
||||
|
||||
local cr, cg, cb, ca = pfUI.api.GetStringColor(b.xp_color)
|
||||
b.bar:SetStatusBarColor(cr,cg,cb,ca)
|
||||
@@ -230,7 +238,7 @@ end
|
||||
b.restedbar:SetStatusBarTexture(pfUI.media["img:bar"])
|
||||
b.restedbar:ClearAllPoints()
|
||||
b.restedbar:SetAllPoints(b)
|
||||
b.restedbar:SetFrameStrata("MEDIUM")
|
||||
b.restedbar:SetFrameStrata(restedStrata)
|
||||
local cr, cg, cb, ca = pfUI.api.GetStringColor(b.rest_color)
|
||||
b.restedbar:SetStatusBarColor(cr,cg,cb,ca)
|
||||
b.restedbar:SetOrientation(b.mode)
|
||||
|
||||
Reference in New Issue
Block a user