From 886155ab79b4ed0c3270397b32d7cfc72c495f9e Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Fri, 26 Mar 2010 01:24:21 -0400 Subject: [PATCH] In ColorNameByFaction(): Changed to color neutral factions by the "neutral" color, same factions by the "exalted" color, and opposing factions by the "hated" color. --- Frame.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Frame.lua b/Frame.lua index 1bb1687..8babc34 100644 --- a/Frame.lua +++ b/Frame.lua @@ -2954,12 +2954,12 @@ do -- Changes the color of "name" based on faction type. local function ColorNameByFaction(name, faction) - if faction == FACTION_HORDE then - name = addon:Horde(name) - elseif faction == FACTION_ALLIANCE then - name = addon:Alliance(name) - else + if faction == FACTION_NEUTRAL then name = SetTextColor(private.reputation_colors["neutral"], name) + elseif faction == BFAC[Player.faction] then + name = SetTextColor(private.reputation_colors["exalted"], name) + else + name = SetTextColor(private.reputation_colors["hated"], name) end return name end -- 1.7.9.5