From 6939864bd610e79d827e973f6cf5d83c60abea8c Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Tue, 9 Mar 2010 07:53:20 -0500 Subject: [PATCH] For recipe entries, replaced "Display" with "is_visible". --- ARL.lua | 4 ++-- Frame.lua | 10 +++++----- Player.lua | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ARL.lua b/ARL.lua index 0064fc0..b278c73 100644 --- a/ARL.lua +++ b/ARL.lua @@ -871,7 +871,7 @@ function addon:addTradeSkill(RecipeDB, spell_id, skill_level, item_id, quality, ["profession"] = profession_id, ["spell_link"] = GetSpellLink(spell_id), ["name"] = recipe_name, - ["Display"] = true, -- Set to be displayed until the filtering occurs + ["is_visible"] = true, -- Set to be displayed until the filtering occurs ["Search"] = true, -- Set to be showing in the search results ["Flags"] = {}, -- Create the flag space in the RecipeDB ["Acquire"] = {}, -- Create the Acquire space in the RecipeDB @@ -1419,7 +1419,7 @@ do else can_display = false end - recipe_list[recipe_id]["Display"] = can_display + recipe_list[recipe_id].is_visible = can_display end Player.recipes_total = recipes_total Player.recipes_known = recipes_known diff --git a/Frame.lua b/Frame.lua index e690f47..93b8961 100644 --- a/Frame.lua +++ b/Frame.lua @@ -2140,7 +2140,7 @@ do local recipe_index = sorted_recipes[i] local recipe_entry = recipe_list[recipe_index] - if recipe_entry["Display"] and recipe_entry["Search"] then + if recipe_entry.is_visible and recipe_entry["Search"] then -- Determine if the player has an appropiate level in any applicable faction -- to learn the recipe. local acquire_info = recipe_entry["Acquire"] @@ -3025,12 +3025,12 @@ do -- 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_index = sorted_recipes[i] + local recipe_entry = recipe_list[sorted_recipes[i]] - if recipe_list[recipe_index]["Display"] and recipe_list[recipe_index]["Search"] then + if recipe_entry.is_visible and recipe_entry["Search"] then -- loop through acquire methods, display each - for index, acquire in pairs(recipe_list[recipe_index]["Acquire"]) do - if CheckMapDisplay(acquire, recipe_list[recipe_index]["Flags"]) then + for index, acquire in pairs(recipe_entry["Acquire"]) do + if CheckMapDisplay(acquire, recipe_entry["Flags"]) then maplist[acquire] = true end end diff --git a/Player.lua b/Player.lua index 44ec884..02da579 100644 --- a/Player.lua +++ b/Player.lua @@ -78,7 +78,7 @@ function Player:MarkExclusions() -- check if the entry exists in DB first if recipe then if ignored then - recipe["Display"] = false + recipe.is_visible = false end local tmp_prof = GetSpellInfo(recipe.profession) -- 1.7.9.5