WoWInterface SVN oUF_Reputation

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 2 to Rev 3
    Reverse comparison

Rev 2 → Rev 3

trunk/oUF_Reputation/oUF_Reputation.lua
26,6 → 26,7
bar:SetValue(value)
bar:EnableMouse()
bar:SetStatusBarColor(unpack(bar.Colors or {FACTION_BAR_COLORS[id].r, FACTION_BAR_COLORS[id].g, FACTION_BAR_COLORS[id].b}))
bar:Show()
 
if(not bar.MouseOver) then
bar:SetAlpha(1)
45,11 → 46,13
bar:SetScript('OnEnter', function() bar:SetAlpha(1) end)
bar:SetScript('OnLeave', function() bar:SetAlpha(0) end)
end
else
bar:Hide()
end
end
 
local function Enable(self, unit)
local reputation = self.Experience
local reputation = self.Reputation
if(reputation and unit == 'player') then
self:RegisterEvent('UPDATE_FACTION', Update)