WoWInterface SVN zz_BossPercent

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 29 to Rev 30
    Reverse comparison

Rev 29 → Rev 30

zz_BossPercent/core.lua
20,10 → 20,12
local health,maxHealth = UnitHealth(unit), UnitHealthMax(unit)
-- print(name, health,maxHealth)
self['nfs']:SetText(name)
if(self['pfs']) then
if(self['pfs'] and maxHealth>0) then
self['pfs']:SetFormattedText(addon['colorize']("%.0f %%","ffbb88"),health / (maxHealth/100))
end
self['hsb']:SetValue(health / (maxHealth/100))
if(self['hsb'] and maxHealth>0) then
self['hsb']:SetValue(health / (maxHealth/100))
end
end
 
local function addUnit(group,groupName, unit,oldUnit, target)