castbar: attach back to unit frame size by default

This commit is contained in:
shagu
2025-07-24 09:21:39 +02:00
parent c38a2d3f18
commit 3af870a225
+6 -6
View File
@@ -213,8 +213,8 @@ pfUI:RegisterModule("castbar", "vanilla:tbc", function ()
pfUI.castbar.player.spacing = default_border * 2 + tonumber(C.unitframes.player.pspace) * GetPerfectPixel()
if pfUI.uf.player then
local width = C.castbar.player.width ~= "-1" and C.castbar.player.width or pfUI.uf.player.power:GetWidth()
pfUI.castbar.player:SetPoint("TOPLEFT", pfUI.uf.player.power, "BOTTOMLEFT", 0, -pfUI.castbar.player.spacing)
local width = C.castbar.player.width ~= "-1" and C.castbar.player.width or pfUI.uf.player:GetWidth()
pfUI.castbar.player:SetPoint("TOPLEFT", pfUI.uf.player, "BOTTOMLEFT", 0, -pfUI.castbar.player.spacing)
pfUI.castbar.player:SetWidth(width)
else
local width = C.castbar.player.width ~= "-1" and C.castbar.player.width or 200
@@ -240,8 +240,8 @@ pfUI:RegisterModule("castbar", "vanilla:tbc", function ()
pfUI.castbar.target.spacing = default_border * 2 + tonumber(C.unitframes.target.pspace) * GetPerfectPixel()
if pfUI.uf.target then
local width = C.castbar.target.width ~= "-1" and C.castbar.target.width or pfUI.uf.target.power:GetWidth()
pfUI.castbar.target:SetPoint("TOPLEFT", pfUI.uf.target.power, "BOTTOMLEFT", 0, -pfUI.castbar.target.spacing)
local width = C.castbar.target.width ~= "-1" and C.castbar.target.width or pfUI.uf.target:GetWidth()
pfUI.castbar.target:SetPoint("TOPLEFT", pfUI.uf.target, "BOTTOMLEFT", 0, -pfUI.castbar.target.spacing)
pfUI.castbar.target:SetWidth(width)
else
local width = C.castbar.target.width ~= "-1" and C.castbar.target.width or 200
@@ -271,8 +271,8 @@ pfUI:RegisterModule("castbar", "vanilla:tbc", function ()
pfUI.castbar.focus.unitstr = nil
end
local width = C.castbar.focus.width ~= "-1" and C.castbar.focus.width or pfUI.uf.focus.power:GetWidth()
pfUI.castbar.focus:SetPoint("TOPLEFT", pfUI.uf.focus.power, "BOTTOMLEFT", 0, -pfUI.castbar.focus.spacing)
local width = C.castbar.focus.width ~= "-1" and C.castbar.focus.width or pfUI.uf.focus:GetWidth()
pfUI.castbar.focus:SetPoint("TOPLEFT", pfUI.uf.focus, "BOTTOMLEFT", 0, -pfUI.castbar.focus.spacing)
pfUI.castbar.focus:SetWidth(width)
if C.castbar.focus.height ~= "-1" then