castbar: load saved position

This commit is contained in:
shagu
2018-06-02 16:46:19 +02:00
parent 564ec6e8c5
commit e0df710cff
+4 -1
View File
@@ -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)