mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-20 11:30:48 +00:00
xpbar: set default spacing to 3x border size
This commit is contained in:
+2
-2
@@ -36,7 +36,7 @@ pfUI:RegisterModule("xpbar", "vanilla:tbc", function ()
|
|||||||
b:SetHeight(height)
|
b:SetHeight(height)
|
||||||
b:SetFrameStrata("BACKGROUND")
|
b:SetFrameStrata("BACKGROUND")
|
||||||
|
|
||||||
AlignToPosition(b, _G[anchor], position)
|
AlignToPosition(b, _G[anchor], position, default_border*3)
|
||||||
CreateBackdrop(b)
|
CreateBackdrop(b)
|
||||||
CreateBackdropShadow(b)
|
CreateBackdropShadow(b)
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@ pfUI:RegisterModule("xpbar", "vanilla:tbc", function ()
|
|||||||
b:RegisterEvent("UPDATE_FACTION")
|
b:RegisterEvent("UPDATE_FACTION")
|
||||||
b:SetScript("OnEvent", function()
|
b:SetScript("OnEvent", function()
|
||||||
-- realign when entering world to ensure all frames got loaded
|
-- realign when entering world to ensure all frames got loaded
|
||||||
AlignToPosition(b, _G[anchor], position)
|
AlignToPosition(b, _G[anchor], position, default_border*3)
|
||||||
|
|
||||||
-- set either experience, reputation or flex-rep handler
|
-- set either experience, reputation or flex-rep handler
|
||||||
local mode = ( t == "XP" and UnitLevel("player") < MAX_LEVEL ) and "XP" or t == "REP" and "REP" or "FLEX"
|
local mode = ( t == "XP" and UnitLevel("player") < MAX_LEVEL ) and "XP" or t == "REP" and "REP" or "FLEX"
|
||||||
|
|||||||
Reference in New Issue
Block a user