From 296e9037d372a789d02fd5a0d0f41775ab926e7c Mon Sep 17 00:00:00 2001 From: ackis Date: Wed, 10 Jun 2009 20:26:20 +0000 Subject: [PATCH] Convert TooltipScanDatabase to use TooltipScanRecipe which removes a bunch of redundant code. --- ARLDatamine.lua | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 5acd871..d2c06a8 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -1937,23 +1937,10 @@ function addon:TooltipScanDatabase() end local reverse_lookup = CreateReverseLookup(recipe_list) - ARLDatamineTT:SetOwner(WorldFrame, "ANCHOR_NONE") - GameTooltip_SetDefaultAnchor(ARLDatamineTT, UIParent) - -- Parse the entire recipe database for i in pairs(recipe_list) do - local name = recipe_list[i]["Name"] - local link = recipe_list[i]["RecipeLink"] - - if link then - ARLDatamineTT:SetHyperlink(link) - self:ScanToolTip(name, recipe_list, reverse_lookup, false, false) - self:PrintScanResults() - else - self:Print("Missing RecipeLink for ID " .. i .. " - " .. name .. " (If these are DK abilities, don't worry, that's normal.") - end + self:TooltipScanRecipe(i) end - ARLDatamineTT:Hide() end local RECIPE_NAMES = { -- 1.7.9.5