From e0df710cff8ce53f0375ba2f3e47426c0dff018f Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 2 Jun 2018 16:46:19 +0200 Subject: [PATCH] castbar: load saved position --- modules/castbar.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/castbar.lua b/modules/castbar.lua index b07fc04c..68ff0fce 100644 --- a/modules/castbar.lua +++ b/modules/castbar.lua @@ -11,7 +11,6 @@ pfUI:RegisterModule("castbar", function () local cb = CreateFrame("Frame", name, parent or UIParent) CreateBackdrop(cb, default_border) - UpdateMovable(cb) cb:SetHeight(C.global.font_size * 1.5) cb:SetFrameStrata("MEDIUM") @@ -135,6 +134,8 @@ pfUI:RegisterModule("castbar", function () pfUI.castbar.player:SetPoint("CENTER", 0, -200) pfUI.castbar.player:SetWidth(200) end + + UpdateMovable(pfUI.castbar.player) end -- [[ pfTargetCastbar ]] -- @@ -149,5 +150,7 @@ pfUI:RegisterModule("castbar", function () pfUI.castbar.target:SetPoint("CENTER", 0, -225) pfUI.castbar.target:SetWidth(200) end + + UpdateMovable(pfUI.castbar.target) end end)