From 8f3d10fc55acc83309ad9ee67008ee35b49b95b0 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sat, 27 Mar 2010 00:54:45 -0400 Subject: [PATCH] In ListFrame:Update(): For for Location/Acquisition sorts, color the headers appropriately. --- Frame.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Frame.lua b/Frame.lua index 42fcdcb..920ce81 100644 --- a/Frame.lua +++ b/Frame.lua @@ -2670,7 +2670,10 @@ do if count > 0 then local t = AcquireTable() - t.text = string.format("%s (%d)", private.acquire_names[acquire_type], count) + local acquire_str = string.gsub(private.acquire_strings[acquire_type]:lower(), "_", "") + local color_code = private.category_colors[acquire_str] or "ffffff" + + t.text = string.format("%s (%d)", SetTextColor(color_code, private.acquire_names[acquire_type]), count) t.acquire_id = acquire_type insert_index = self:InsertEntry(t, nil, insert_index, "header", expand_acquires, expand_acquires) @@ -2709,7 +2712,7 @@ do if count > 0 then local t = AcquireTable() - t.text = string.format("%s (%d)", loc_name, count) + t.text = string.format("%s (%d)", SetTextColor(private.category_colors["location"], loc_name), count) t.location_id = loc_name insert_index = self:InsertEntry(t, nil, insert_index, "header", expand_acquires, expand_acquires) -- 1.7.9.5