WoWInterface SVN oUF_Industrial

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 13 to Rev 14
    Reverse comparison

Rev 13 → Rev 14

Addon.lua
77,7 → 77,7
local class = select(2, UnitClass(unit))
local color = RAID_CLASS_COLORS[class]
 
return ('|cff%02X%02X%02X%s|r'):format(color.r*255, color.g*255, color.b*255, shortclassnames[class])
return color and ('|cff%02X%02X%02X%s|r'):format(color.r*255, color.g*255, color.b*255, shortclassnames[class]) or ''
end
 
function formatTextHappiness (unit)
90,7 → 90,7
 
function formatTextLevel (unit)
local color = GetDifficultyColor(UnitLevel(unit))
return ('|cff%02X%02X%02X%s|r'):format(color.r*255, color.g*255, color.b*255, UnitLevel(unit))
return color and ('|cff%02X%02X%02X%s|r'):format(color.r*255, color.g*255, color.b*255, UnitLevel(unit)) or ''
end
 
function formatTextName (unit)