mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-24 04:50:49 +00:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user