WoWInterface SVN oUF_Reputation

Compare Revisions

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

Rev 3 → Rev 2

trunk/oUF_Reputation/oUF_Reputation.lua
26,7 → 26,6
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)
46,13 → 45,11
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.Reputation
local reputation = self.Experience
if(reputation and unit == 'player') then
self:RegisterEvent('UPDATE_FACTION', Update)