From 0d88899f3a95cfbe7b50339c4edd08826bcbffca Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Thu, 1 Apr 2010 23:43:25 -0400 Subject: [PATCH] Updated addon:SetupMap() for changes to the RELEVANT state behavior. --- Waypoint.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Waypoint.lua b/Waypoint.lua index 80c2581..9560a19 100644 --- a/Waypoint.lua +++ b/Waypoint.lua @@ -428,12 +428,17 @@ function addon:SetupMap(single_recipe) elseif addon.db.profile.autoscanmap then local sorted_recipes = addon.sorted_recipes local SF = private.recipe_state_flags - + local editbox_text = addon.Frame.search_editbox:GetText() -- Scan through all recipes to display, and add the vendors to a list to get their acquire info for i = 1, #sorted_recipes do local recipe = recipe_list[sorted_recipes[i]] + local matches_search = true + + if editbox_text ~= "" and editbox_text ~= _G.SEARCH then + matches_search = recipe:HasState("RELEVANT") + end - if recipe:HasState("VISIBLE") and recipe:HasState("RELEVANT") then + if recipe:HasState("VISIBLE") and matches_search then for acquire_type, acquire_info in pairs(recipe.acquire_data) do for id_num, id_info in pairs(acquire_info) do if acquire_type == A.REPUTATION then -- 1.7.9.5