Add option to color bar by standing
Adrian L Lange [10-04-11 - 01:21]
Add option to color bar by standing
diff --git a/oUF_Reputation.lua b/oUF_Reputation.lua
index ddfd3c7..77137e8 100644
--- a/oUF_Reputation.lua
+++ b/oUF_Reputation.lua
@@ -40,6 +40,11 @@ local function Update(self, event, unit)
reputation:SetMinMaxValues(0, max - min)
reputation:SetValue(value - min)
+ if(reputation.colorStanding) then
+ local color = FACTION_BAR_COLORS[standing]
+ reputation:SetStatusBarColor(color.r, color.g, color.b)
+ end
+
if(reputation.PostUpdate) then
return reputation:PostUpdate(unit, name, standing, min, max, value)
end