From 3af870a225dfd9c9bd24b32b17bbd0823211581f Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 24 Jul 2025 09:21:39 +0200 Subject: [PATCH] castbar: attach back to unit frame size by default --- modules/castbar.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/castbar.lua b/modules/castbar.lua index b99b67ca..d8ef773b 100644 --- a/modules/castbar.lua +++ b/modules/castbar.lua @@ -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