WoWInterface SVN oUF_P3lim

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 59 to Rev 60
    Reverse comparison

Rev 59 → Rev 60

trunk/oUF_P3lim/oUF_P3lim.lua
132,12 → 132,12
end
end
 
local function UpdatePortrait(self, min, max)
local function UpdatePortrait(self)
if(UnitIsDeadOrGhost(self.unit)) then
self.Portrait:Hide()
else
self.Portrait:Show()
self.Portrait:SetWidth(230 * min/max)
self.Portrait:SetWidth(230 * UnitHealth(self.unit) / UnitHealthMax(self.unit))
end
end
 
173,7 → 173,7
end
 
if(self.Portrait) then
UpdatePortrait(self, min, max)
UpdatePortrait(self)
end
end