mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 18:06:02 +00:00
thirdparty: use power bar texture for druid bars
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user