mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 02:36:02 +00:00
xpbar: update movables when position was set
This commit is contained in:
@@ -37,6 +37,7 @@ pfUI:RegisterModule("xpbar", "vanilla:tbc", function ()
|
||||
b:SetFrameStrata("BACKGROUND")
|
||||
|
||||
AlignToPosition(b, _G[anchor], position, default_border*3)
|
||||
UpdateMovable(b, true)
|
||||
CreateBackdrop(b)
|
||||
CreateBackdropShadow(b)
|
||||
|
||||
@@ -81,6 +82,7 @@ pfUI:RegisterModule("xpbar", "vanilla:tbc", function ()
|
||||
b:SetScript("OnEvent", function()
|
||||
-- realign when entering world to ensure all frames got loaded
|
||||
AlignToPosition(b, _G[anchor], position, default_border*3)
|
||||
UpdateMovable(b, true)
|
||||
|
||||
-- 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"
|
||||
|
||||
Reference in New Issue
Block a user