WoWInterface SVN zz_BossPercent

Compare Revisions

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

Rev 30 → Rev 29

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