From 9bb9645ee0be770e742cf95b0a7d19152e8436a5 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 22 May 2020 11:29:12 +0200 Subject: [PATCH] nameplates: align name to healthbar where possible --- modules/nameplates.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 5a4834b5..728ba57a 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -224,7 +224,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () nameplate.health.text:SetAllPoints() nameplate.health.text:SetTextColor(1,1,1,1) - nameplate.name = nameplate.health:CreateFontString(nil, "OVERLAY") + nameplate.name = nameplate:CreateFontString(nil, "OVERLAY") nameplate.name:SetPoint("TOP", nameplate, "TOP", 0, nameoffset) nameplate.glow = nameplate:CreateTexture(nil, "BACKGROUND") @@ -465,9 +465,11 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () -- hide frames according to the configuration if HidePlate(unittype, name, (hpmax-hp == hpmin), target) then plate.level:SetPoint("RIGHT", plate.name, "LEFT", -3, 0) + plate.name:SetParent(plate) plate.health:Hide() else plate.level:SetPoint("RIGHT", plate.health, "LEFT", -3, 0) + plate.name:SetParent(plate.health) plate.health:Show() end