From 216ec41e8761cbb0e41d5d3b43fe06eaa3549fe3 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sun, 28 Mar 2010 08:09:09 -0400 Subject: [PATCH] When expanding a World Drop entry, the location name (if it exists) will be displayed. --- Frame.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Frame.lua b/Frame.lua index 92a4660..11f39d4 100644 --- a/Frame.lua +++ b/Frame.lua @@ -3237,9 +3237,16 @@ do local function ExpandWorldDropData(entry_index, entry_type, id_num, recipe_id, hide_location, hide_type) local parent_entry = GetParentEntry(entry_index, entry_type) local _, _, _, hex_color = GetItemQualityColor(private.recipe_list[recipe_id].quality) + local drop_location = type(id_num) == "string" and BZ[id_num] or nil + + if drop_location then + drop_location = string.format(": %s", SetTextColor(CATEGORY_COLORS["location"], drop_location)) + else + drop_location = "" + end local t = AcquireTable() - t.text = string.format("%s%s%s|r", PADDING, hex_color, L["World Drop"]) + t.text = string.format("%s%s%s|r%s", PADDING, hex_color, L["World Drop"], drop_location) t.recipe_id = recipe_id return ListFrame:InsertEntry(t, parent_entry, entry_index, entry_type, true) -- 1.7.9.5