Quantcast

In ColorNameByFaction(): Changed to color neutral factions by the "neutral" color, same factions by the "exalted" color, and opposing factions by the "hated" color.

James D. Callahan III [03-26-10 - 05:24]
In ColorNameByFaction(): Changed to color neutral factions by the "neutral" color, same factions by the "exalted" color, and opposing factions by the "hated" color.
Filename
Frame.lua
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