From 6085662b7cedc19e7898fef14be85aa7de9c63be Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 21 May 2020 19:12:11 +0200 Subject: [PATCH] nameplates: set name font to healthbar --- modules/nameplates.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 086adf4b..a223767f 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -218,16 +218,15 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () -- adjust sizes and scaling of the nameplate nameplate:SetScale(UIParent:GetScale()) - nameplate.name = nameplate:CreateFontString(nil, "OVERLAY") - nameplate.name:SetPoint("TOP", nameplate, "TOP", 0, 0) - nameplate.health = CreateFrame("StatusBar", nil, nameplate) - nameplate.health:SetPoint("TOP", nameplate.name, "BOTTOM", 0, -3) nameplate.health:SetFrameLevel(4) -- keep above glow nameplate.health.text = nameplate.health:CreateFontString(nil, "OVERLAY", "GameFontNormal") nameplate.health.text:SetAllPoints() nameplate.health.text:SetTextColor(1,1,1,1) + nameplate.name = nameplate.health:CreateFontString(nil, "OVERLAY") + nameplate.name:SetPoint("TOP", nameplate, "TOP", 0, nameoffset) + nameplate.glow = nameplate:CreateTexture(nil, "BACKGROUND") nameplate.glow:SetPoint("CENTER", nameplate.health, "CENTER", 0, 0) nameplate.glow:SetTexture(pfUI.media["img:dot"])