PHP код:
GF=CreateFrame("Frame")GFHB=PlayerFrameHealthBar.TextString;TTSB=TextStatusBar_CapDisplayOfNumericValue
TF=CreateFrame("Frame")TFHB=TargetFrameHealthBar.TextString;TTSB=TextStatusBar_CapDisplayOfNumericValue
LF=CreateFrame("Frame")LFHB=FocusFrameHealthBar.TextString;TTSB=TextStatusBar_CapDisplayOfNumericValue
GF:SetScript("OnUpdate",function(player)GFHB:SetText(TTSB(UnitHealth("player")).." ("..format("%.0f",((UnitHealth("player")/UnitHealthMax("player"))*100)).."%)") end)
LF:SetScript("OnUpdate",function(player)LFHB:SetText(TTSB(UnitHealth("player")).." ("..format("%.0f",((UnitHealth("player")/UnitHealthMax("player"))*100)).."%)") end)
TF:SetScript("OnUpdate",function(target)TFHB:SetText(TTSB(UnitHealth("target")).." ("..format("%.0f",((UnitHealth("target")/UnitHealthMax("target"))*100)).."%)") end)
local CurrentValues = CreateFrame("Frame")
CurrentValues:SetScript("OnUpdate", function(self, e)
local PlayerMana = UnitMana("player")
local TargetMana = UnitMana("target")
local FocusMana = UnitMana("focus")
PlayerFrameManaBar.TextString:SetText(TextStatusBar_CapDisplayOfNumericValue(PlayerMana))
TargetFrameManaBar.TextString:SetText(TextStatusBar_CapDisplayOfNumericValue(TargetMana))
FocusFrameManaBar.TextString:SetText(TextStatusBar_CapDisplayOfNumericValue(FocusMana))
end)
Открываешь TargetPercent.lua(или в другой какой аддон) и заменяешь текстом выше.
будет как то так: