From 37f002ebc0709d766385a798f2c44e24749b4e27 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 24 Jul 2025 20:36:55 +0200 Subject: [PATCH] buffwatch: align bars to whole unitframe width --- modules/buffwatch.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/buffwatch.lua b/modules/buffwatch.lua index 33e76e0c..e9109b2a 100644 --- a/modules/buffwatch.lua +++ b/modules/buffwatch.lua @@ -421,7 +421,7 @@ pfUI:RegisterModule("buffwatch", "vanilla:tbc", function () local br, bg, bb, ba = strsplit(",", config.bordercolor) local tr, tg, tb, ta = strsplit(",", config.textcolor) - pfUI.uf.player.buffbar:SetWidth(config.width == "-1" and C.unitframes.player.width or config.width) + pfUI.uf.player.buffbar:SetWidth(config.width == "-1" and pfUI.uf.player:GetWidth() or config.width) pfUI.uf.player.buffbar:SetHeight(config.height) pfUI.uf.player.buffbar.threshold = tonumber(config.threshold) pfUI.uf.player.buffbar.config = config @@ -448,7 +448,7 @@ pfUI:RegisterModule("buffwatch", "vanilla:tbc", function () local tr, tg, tb, ta = strsplit(",", config.textcolor) pfUI.uf.player.debuffbar = CreateBuffBarFrame("Player", "HARMFUL") - pfUI.uf.player.debuffbar:SetWidth(config.width == "-1" and C.unitframes.player.width or config.width) + pfUI.uf.player.debuffbar:SetWidth(config.width == "-1" and pfUI.uf.player:GetWidth() or config.width) pfUI.uf.player.debuffbar:SetHeight(config.height) pfUI.uf.player.debuffbar.threshold = tonumber(config.threshold) pfUI.uf.player.debuffbar.config = config @@ -476,7 +476,7 @@ pfUI:RegisterModule("buffwatch", "vanilla:tbc", function () local tr, tg, tb, ta = strsplit(",", config.textcolor) pfUI.uf.target.debuffbar = CreateBuffBarFrame("Target", "HARMFUL") - pfUI.uf.target.debuffbar:SetWidth(config.width == "-1" and C.unitframes.target.width or config.width) + pfUI.uf.target.debuffbar:SetWidth(config.width == "-1" and pfUI.uf.target:GetWidth() or config.width) pfUI.uf.target.debuffbar:SetHeight(config.height) pfUI.uf.target.debuffbar.config = config pfUI.uf.target.debuffbar.buffcmp = config.sort == "asc" and asc or desc