mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 22:00:49 +00:00
target: make fontwidth calculation aware of portraits
This commit is contained in:
+1
-1
@@ -229,7 +229,7 @@ pfUI:RegisterModule("target", function ()
|
|||||||
end
|
end
|
||||||
|
|
||||||
pfUI.uf.target.powerText:SetText( "|cff" .. levelcolor .. level .. "|r " .. name)
|
pfUI.uf.target.powerText:SetText( "|cff" .. levelcolor .. level .. "|r " .. name)
|
||||||
pfUI.uf.target.powerText:SetWidth(pfUI.uf.target:GetWidth() -30 - pfUI.uf.target.hpText:GetStringWidth())
|
pfUI.uf.target.powerText:SetWidth(pfUI.uf.target.hp.bar:GetWidth() / pfUI.uf.target.hp.bar:GetEffectiveScale() -30 - pfUI.uf.target.hpText:GetStringWidth())
|
||||||
|
|
||||||
PowerColor = ManaBarColor[UnitPowerType("target")]
|
PowerColor = ManaBarColor[UnitPowerType("target")]
|
||||||
pfUI.uf.target.power.bar:SetStatusBarColor(PowerColor.r + .5, PowerColor.g +.5, PowerColor.b +.5, 1)
|
pfUI.uf.target.power.bar:SetStatusBarColor(PowerColor.r + .5, PowerColor.g +.5, PowerColor.b +.5, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user