Ackis Recipe List:
Ackis [11-03-08 - 22:37]
Ackis Recipe List:
- Local change:
L["ALT_CLICK"] = "Alt-Click to add/remove this recipe to your ignore list"
- Current code functionality to exclude a recipe will also remove it from the exclusion list... needs testing.
- To get something on the exclusion list, alt-click it.
- To remove something from the exclusion list, set your filter to display items on the exclusion list, and then alt-click that item.
- Note that items on the exclusion list may be filtered for other reasons (ie: skill level, raids, etc)
- Added function to view the exclusion list (Type /arl and go to the main window to see this function)
- Two new locals:
L["View Exclusion List"] = true
L["VIEW_EXCLUSION_LIST_DESC"] = "Prints out a list of all recipes on the exclusion list."
- Dry-coded (Compiles with luac -p)
diff --git a/ARLConfig.lua b/ARLConfig.lua
index 117153d..ea171a6 100644
--- a/ARLConfig.lua
+++ b/ARLConfig.lua
@@ -993,8 +993,15 @@ local function fullOptions()
desc = L["TEXT_DUMP_DESC"],
func = function(info) addon:AckisRecipeList_Command(true) end,
},
- spacer1 = {
+ textdump = {
order = 14,
+ type = "execute",
+ name = L["View Exclusion List"],
+ desc = L["VIEW_EXCLUSION_LIST_DESC"],
+ func = function(info) addon:ViewExclusionList() end,
+ },
+ spacer1 = {
+ order = 15,
type = "description",
name = "\n",
},
diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua
index af57fdf..bf11601 100644
--- a/AckisRecipeList.lua
+++ b/AckisRecipeList.lua
@@ -1929,11 +1929,15 @@ function addon:GetExclusions(RecipeDB)
local exclusionlist = addon.db.profile.exclusionlist
for i in pairs(exclusionlist) do
+
-- We may have a recipe in the exclusion list that has not been scanned yet
-- check if the entry exists in RecipeDB first
if (RecipeDB[i]) then
+
RecipeDB[i]["Display"] = false
+
end
+
end
end
@@ -1960,6 +1964,19 @@ function addon:ToggleExcludeRecipe(SpellID)
end
+function addon:ViewExclusionList()
+
+ local exclusionlist = addon.db.profile.exclusionlist
+
+ -- Parse all items in the exclusion list
+ for i in pairs(exclusionlist) do
+
+ self:Print(i .. ": " .. GetSpellInfo(i))
+
+ end
+
+end
+
--[[
Searching Functions
diff --git a/Locals/ARLLocals-enUS.lua b/Locals/ARLLocals-enUS.lua
index 199757c..9dcecde 100644
--- a/Locals/ARLLocals-enUS.lua
+++ b/Locals/ARLLocals-enUS.lua
@@ -56,6 +56,8 @@ L["Scan"] = true
L["SCAN_RECIPES_DESC"] = "Scans an open tradeskill for missing recipes."
L["Text Dump"] = true
L["TEXT_DUMP_DESC"] = "Displays all recipes in a comma seperated value format which can be copied and pasted into another client."
+L["View Exclusion List"] = true
+L["VIEW_EXCLUSION_LIST_DESC"] = "Prints out a list of all recipes on the exclusion list."
L["DISPLAY_SETTINGS_DESC"] = "Allows you to customize how the GUI behaves."
L["SORTING_SETTINGS_DESC"] = "Allows you to customize the way displayed recipes are sorted."
@@ -257,7 +259,7 @@ L["WEAPON_NONE_DESC"] = "Do NOT include any recipes that make weapon items in t
-- Common Tooltip Strings (where different from above)
L["CTRL_CLICK"] = "Ctrl-Click to add this recipe's link to your chat"
-L["ALT_CLICK"] = "Alt-Click to add this recipe to your ignore list"
+L["ALT_CLICK"] = "Alt-Click to add/remove this recipe to your ignore list"
L["SHIFT_CLICK"] = "Shift-Click to add the item crafted by this recipe's link to your chat"
L["Obtained From"] = true
L["RECIPE_EXCLUDED"] = "Recipe is in Exclusion list"