WoWInterface SVN oUF_P3lim

Compare Revisions

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

Rev 60 → Rev 59

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