thirdparty: use power bar texture for druid bars

This commit is contained in:
Mr_Rosh
2022-08-26 00:44:43 +03:00
committed by GitHub
parent eb331f3372
commit a16151bdfb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -361,7 +361,7 @@ pfUI:RegisterModule("thirdparty-tbc", "tbc", function ()
DruidBarKey.color = { pr, pg, pb, 1 }
DruidBarKey.bordercolor = {1,1,1,0}
DruidBarKey.bgcolor = {0,0,0,0}
DruidBarKey.manatexture = pfUI.media["img:bar"]
DruidBarKey.manatexture = pfUI.media[pfUI.uf.player.config.pbartexture]
DruidBarKey.bordertexture = ""
hooksecurefunc("DruidBar_MainGraphics", function()
+1 -1
View File
@@ -954,7 +954,7 @@ pfUI:RegisterModule("thirdparty-vanilla", "vanilla", function()
local pr, pg, pb = 0, 0, 0
if p then pr, pg, pb = p.r + .5, p.g +.5, p.b +.5 end
DruidManaBar:SetStatusBarColor(pr, pg, pb)
DruidManaBar:SetStatusBarTexture(pfUI.media["img:bar"])
DruidManaBar:SetStatusBarTexture(pfUI.media[pfUI.uf.player.config.pbartexture])
local f = pfUI.uf.player
DruidManaBar:SetWidth((f.config.pwidth ~= "-1" and f.config.pwidth or f.config.width))