From 42e950639f83c8df14a704c2b73ad1de88162810 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Thu, 22 Oct 2026 23:56:51 -0500 Subject: [PATCH] Rotate bar textures on vertical XP, rep and nameplate health bars Vertical StatusBars stretched the bar texture's shading along the wrong axis. ClassicAPI's SetRotatesTexture turns it with the bar. --- modules/nameplates.lua | 1 + modules/xpbar.lua | 2 ++ 2 files changed, 3 insertions(+) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index fe9140e1..abd78699 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -957,6 +957,7 @@ nameplates:RegisterUnitEvent("UNIT_SPELLCAST_NOT_INTERRUPTIBLE", "target", "focu nameplate.name:SetJustifyH(nameTextPos) nameplate.health:SetOrientation(orientation) + nameplate.health:SetRotatesTexture(orientation == "VERTICAL") -- Bar anchors to the plate directly so the name's JustifyH (configurable -- below) can shift left/right without dragging the bar with it. nameplate.health:ClearAllPoints() diff --git a/modules/xpbar.lua b/modules/xpbar.lua index 72541ffa..e0ec0daf 100644 --- a/modules/xpbar.lua +++ b/modules/xpbar.lua @@ -352,6 +352,7 @@ end local cr, cg, cb, ca = pfUI.api.GetStringColor(b.xp_color) b.bar:SetStatusBarColor(cr,cg,cb,ca) b.bar:SetOrientation(b.mode) + b.bar:SetRotatesTexture(b.mode == "VERTICAL") b.bar.text = b.bar.text or b.bar:CreateFontString() b.bar.text:SetPoint("CENTER", b, "CENTER", 0, b.text_off_y) @@ -368,6 +369,7 @@ end local cr, cg, cb, ca = pfUI.api.GetStringColor(b.rest_color) b.restedbar:SetStatusBarColor(cr,cg,cb,ca) b.restedbar:SetOrientation(b.mode) + b.restedbar:SetRotatesTexture(b.mode == "VERTICAL") -- auto hide b:EnableMouse(true)