mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-21 11:50:49 +00:00
castbar: load saved position
This commit is contained in:
+4
-1
@@ -11,7 +11,6 @@ pfUI:RegisterModule("castbar", function ()
|
|||||||
local cb = CreateFrame("Frame", name, parent or UIParent)
|
local cb = CreateFrame("Frame", name, parent or UIParent)
|
||||||
|
|
||||||
CreateBackdrop(cb, default_border)
|
CreateBackdrop(cb, default_border)
|
||||||
UpdateMovable(cb)
|
|
||||||
|
|
||||||
cb:SetHeight(C.global.font_size * 1.5)
|
cb:SetHeight(C.global.font_size * 1.5)
|
||||||
cb:SetFrameStrata("MEDIUM")
|
cb:SetFrameStrata("MEDIUM")
|
||||||
@@ -135,6 +134,8 @@ pfUI:RegisterModule("castbar", function ()
|
|||||||
pfUI.castbar.player:SetPoint("CENTER", 0, -200)
|
pfUI.castbar.player:SetPoint("CENTER", 0, -200)
|
||||||
pfUI.castbar.player:SetWidth(200)
|
pfUI.castbar.player:SetWidth(200)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
UpdateMovable(pfUI.castbar.player)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- [[ pfTargetCastbar ]] --
|
-- [[ pfTargetCastbar ]] --
|
||||||
@@ -149,5 +150,7 @@ pfUI:RegisterModule("castbar", function ()
|
|||||||
pfUI.castbar.target:SetPoint("CENTER", 0, -225)
|
pfUI.castbar.target:SetPoint("CENTER", 0, -225)
|
||||||
pfUI.castbar.target:SetWidth(200)
|
pfUI.castbar.target:SetWidth(200)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
UpdateMovable(pfUI.castbar.target)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user