WoWInterface SVN zz_BossPercent

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 31 to Rev 32
    Reverse comparison

Rev 31 → Rev 32

zz_BossPercent/core.lua
21,7 → 21,7
-- print(name, health,maxHealth)
self['nfs']:SetText(name)
if(self['pfs'] and maxHealth>0) then
self['pfs']:SetFormattedText(addon['colorize']("%.0f %%","ffbb88"),health / (maxHealth/100))
self['pfs']:SetFormattedText(addon:colorize("%.0f %%","ffbb88"),health / (maxHealth/100))
end
if(self['hsb'] and maxHealth>0) then
self['hsb']:SetValue(health / (maxHealth/100))
86,7 → 86,7
if(unit=='playertarget') then
group.frames[unit]['db'] = db
group.frames[unit]['dragAble'] = function() return not db['toggle'] end
addon['AddDrag'](group.frames[unit])
addon:AddDrag(group.frames[unit])
end
RegisterUnitWatch(group.frames[unit])
end
132,4 → 132,4
addon:AddConfigEntry(childName, "toggle","toggle","Lock window",nil,1,nil,nil,nil,nil,options['args'][childName])
group = setupGroup(childName.."Frames",{ "playertarget", "focus", "boss1","boss2","boss3"})
end
addon['startup'](addon, name, childName, init, true, defaults)
\ No newline at end of file +addon:startup(name, childName, init, true, defaults) \ No newline at end of file