From f27f3c7a1b61ec9d530fe96f808c2baccffa1097 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Fri, 26 Mar 2010 02:16:05 -0400 Subject: [PATCH] In FormatRecipeText(): Modified to use SetTextColor() in conjunction with private.difficulty_colors. --- Frame.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Frame.lua b/Frame.lua index 232b3cb..28bee0b 100644 --- a/Frame.lua +++ b/Frame.lua @@ -2587,17 +2587,18 @@ do local rep_data = recipe_entry.acquire_data[A.REPUTATION] local has_faction = Player:HasProperRepLevel(rep_data) local level_text + local difficulty = private.difficulty_colors if not has_faction or recipe_level > skill_level then - level_text = string.format(addon:Red(SKILL_LEVEL_FORMAT), recipe_level) + level_text = string.format(SetTextColor(difficulty["impossible"], SKILL_LEVEL_FORMAT), recipe_level) elseif skill_level >= recipe_entry.trivial_level then - level_text = string.format(addon:MidGrey(SKILL_LEVEL_FORMAT), recipe_level) + level_text = string.format(SetTextColor(difficulty["trivial"], SKILL_LEVEL_FORMAT), recipe_level) elseif skill_level >= recipe_entry.easy_level then - level_text = string.format(addon:Green(SKILL_LEVEL_FORMAT), recipe_level) + level_text = string.format(SetTextColor(difficulty["easy"], SKILL_LEVEL_FORMAT), recipe_level) elseif skill_level >= recipe_entry.medium_level then - level_text = string.format(addon:Yellow(SKILL_LEVEL_FORMAT), recipe_level) + level_text = string.format(SetTextColor(difficulty["medium"], SKILL_LEVEL_FORMAT), recipe_level) elseif skill_level >= recipe_entry.optimal_level then - level_text = string.format(addon:Orange(SKILL_LEVEL_FORMAT), recipe_level) + level_text = string.format(SetTextColor(difficulty["optimal"], SKILL_LEVEL_FORMAT), recipe_level) else addon:Debug("Skill level color fallback: %s.", recipe_string) level_text = string.format(addon:MidGrey(SKILL_LEVEL_FORMAT), recipe_level) -- 1.7.9.5