From bed9efbb601a4efd48f06c140fe284a68fc1cd08 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 9 Jun 2025 19:59:21 +0200 Subject: [PATCH] uf_tukui: only set castbar height on default anchor --- modules/uf_tukui.lua | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/uf_tukui.lua b/modules/uf_tukui.lua index 3afeaa12..0445b73f 100644 --- a/modules/uf_tukui.lua +++ b/modules/uf_tukui.lua @@ -35,8 +35,13 @@ pfUI:RegisterModule("uf_tukui", "vanilla:tbc", function () pfUI.uf.player.hpRightText:SetPoint("RIGHT",pfUI.uf.player.caption, "RIGHT", -default_border, 0) pfUI.castbar.player:SetAllPoints(pfUI.uf.player.caption) - pfUI.castbar.player:SetHeight(pfUI.uf.player.caption:GetHeight()) UpdateMovable(pfUI.castbar.player, true) + + local _, anchor = pfUI.castbar.player:GetPoint() + if anchor and anchor == pfUI.uf.player.caption then + pfUI.castbar.player:SetHeight(pfUI.uf.player.caption:GetHeight()) + end + CreateBackdrop(pfUI.uf.player.caption, default_border) if pfUI.castbar.player.bar.backdrop_shadow then pfUI.castbar.player.bar.backdrop_shadow:Hide() @@ -77,8 +82,13 @@ pfUI:RegisterModule("uf_tukui", "vanilla:tbc", function () pfUI.uf.target.hpRightText:SetPoint("RIGHT",pfUI.uf.target.caption, "RIGHT", -default_border, 0) pfUI.castbar.target:SetAllPoints(pfUI.uf.target.caption) - pfUI.castbar.target:SetHeight(pfUI.uf.target.caption:GetHeight()) UpdateMovable(pfUI.castbar.target, true) + + local _, anchor = pfUI.castbar.target:GetPoint() + if anchor and anchor == pfUI.uf.target.caption then + pfUI.castbar.target:SetHeight(pfUI.uf.target.caption:GetHeight()) + end + CreateBackdrop(pfUI.uf.target.caption, default_border) if pfUI.castbar.target.bar.backdrop_shadow then pfUI.castbar.target.bar.backdrop_shadow:Hide()