mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +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
|
||||
|
||||
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")]
|
||||
pfUI.uf.target.power.bar:SetStatusBarColor(PowerColor.r + .5, PowerColor.g +.5, PowerColor.b +.5, 1)
|
||||
|
||||
Reference in New Issue
Block a user