nameplates: add option for vertical healthbars

This commit is contained in:
shagu
2025-01-31 21:55:47 +01:00
parent 03a2ed6502
commit 90cc1a1ba6
3 changed files with 5 additions and 0 deletions
+3
View File
@@ -453,6 +453,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
local width = tonumber(C.nameplates.width)
local debuffsize = tonumber(C.nameplates.debuffsize)
local healthoffset = tonumber(C.nameplates.health.offset)
local orientation = C.nameplates.verticalhealth == "1" and "VERTICAL" or "HORIZONTAL"
nameplate:SetWidth(plate_width)
nameplate:SetHeight(plate_height)
@@ -460,11 +461,13 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
nameplate.name:SetFont(font, font_size, font_style)
nameplate.health:SetOrientation(orientation)
nameplate.health:SetPoint("TOP", nameplate.name, "BOTTOM", 0, healthoffset)
nameplate.health:SetStatusBarTexture(hptexture)
nameplate.health:SetWidth(C.nameplates.width)
nameplate.health:SetHeight(C.nameplates.heighthealth)
nameplate.health.hlr, nameplate.health.hlg, nameplate.health.hlb, nameplate.health.hla = hlr, hlg, hlb, hla
CreateBackdrop(nameplate.health, default_border)
nameplate.health.text:SetFont(font, font_size - 2, "OUTLINE")