From d43a30042bbe7dff98ca711ee264380b27468919 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Tue, 26 Jul 2011 00:03:56 -0500 Subject: [PATCH] Display the icon for the crafted item in the tooltip, if available. --- Interface/List.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Interface/List.lua b/Interface/List.lua index c8d9b68..d963052 100644 --- a/Interface/List.lua +++ b/Interface/List.lua @@ -1847,6 +1847,13 @@ do acquire_tip:AddHeader() acquire_tip:SetCell(1, 1, "|c"..select(4, _G.GetItemQualityColor(recipe.quality))..recipe.name, "CENTER", 2) + local recipe_item_texture = _G.select(10, _G.GetItemInfo(recipe.crafted_item_id)) + + if recipe_item_texture then + acquire_tip:AddHeader() + acquire_tip:SetCell(2, 1, ("|T%s:30:30|t"):format(recipe_item_texture), "CENTER", 2) + end + if addon.db.profile.exclusionlist[list_entry.recipe_id] then ttAdd(0, -1, true, L["RECIPE_EXCLUDED"], "ff0000") end -- 1.7.9.5