diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index ca506d6..a79d104 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -62,7 +62,7 @@ end local BFAC = LibStub("LibBabble-Faction-3.0"):GetLookupTable() local L = LibStub("AceLocale-3.0"):GetLocale(MODNAME) -local MaxFilterIndex = 129 +local MaxFilterIndex = 131 -- Global Frame Variables addon.optionsFrame = {} @@ -2044,14 +2044,27 @@ function addon:GetTextDump(RecipeDB) local texttable = {} -- Add a header to the text table - tinsert(texttable,"Spell ID, Recipe Name, Skill Level, Known") + tinsert(texttable,"Text output of all recipes and acquire information. Output is in the form of comma seperated values.") + tinsert(texttable,"Spell ID, Recipe Name, Skill Level, ARL Filter Flags, Known") for SpellID in pairs(RecipeDB) do + local flags = RecipeDB[SpellID]["Flags"] + local flaglist = {} + + -- Find out which flags are marked as "true" + for i=1,MaxFilterIndex,1 do + if (flags[i] == true) then + tinsert(texttable,i) + end + end + + local flagtext = tconcat(flaglist,",") + if (RecipeDB[SpellID]["Known"]) then - tinsert(texttable,SpellID .. "," .. RecipeDB[SpellID]["Name"] .. "," .. RecipeDB[SpellID]["Level"] .. "," .. ",true") + tinsert(texttable,SpellID .. "," .. RecipeDB[SpellID]["Name"] .. "," .. RecipeDB[SpellID]["Level"] .. ",[" .. flagtext .. "],true") else - tinsert(texttable,SpellID .. "," .. RecipeDB[SpellID]["Name"] .. "," .. RecipeDB[SpellID]["Level"] .. "," .. ",false") + tinsert(texttable,SpellID .. "," .. RecipeDB[SpellID]["Name"] .. "," .. RecipeDB[SpellID]["Level"] .. ",[" .. flagtext .. "],false") end end diff --git a/Docs/Documentation.txt b/Docs/Documentation.txt index c49a83a..db3db7f 100644 --- a/Docs/Documentation.txt +++ b/Docs/Documentation.txt @@ -15,32 +15,25 @@ In the RecipeDB is a single file for each profession. Each recipe is inserted in self:addTradeAcquire(RecipeDB, 25610, 2, 4877, 2, 1448) ==addTradeSkill== - This function adds the main recipe entry, including the following information: - -- Spell ID - -- Skill Level Learnt - -- Item ID created - -- Recipe Rarity - -- Recipe Speciality (if applicable) - From there, internal functions determine the following: - -- Name of the recipe - -- Link determining the recipe made +This function adds the main recipe entry, including the following information: +* Spell ID +* Skill Level Learnt +* Item ID created +* Recipe Rarity +* Recipe Speciality (if applicable) +From there, internal functions determine the following: +* Name of the recipe +* Link determining the recipe made ==addTradeFlags== - This function adds a series of "flags" about the recipe. This include a fairly - exhaustive look at the recipe and the item made, where is can be obtained, etc. - The individual flags are documented further down +This function adds a series of "flags" about the recipe. This include a fairly exhaustive look at the recipe and the item made, where is can be obtained, etc. The individual flags are documented further down. ==addTradeAcquire== - This function adds entries into the main database with exact instructions on how the recipe - can be obtained. The details of these acquire methods are detailed further down - - - - +This function adds entries into the main database with exact instructions on how the recipe can be obtained. The details of these acquire methods are detailed further down. ==SavedVariable Structure== - * default values are indicated where applicable - * descriptions of values are at right +* default values are indicated where applicable +* descriptions of values are at right addon.db.profile----> sorting = ""Skill" [ | "Name" | "Acquisition" ] -- Sorting method diff --git a/Docs/Main.txt b/Docs/Main.txt index 1608007..400976d 100644 --- a/Docs/Main.txt +++ b/Docs/Main.txt @@ -3,13 +3,11 @@ Ackis Recipe List is an addon which will scan your trade skill recipes and print out a list of which recipes you are currently missing. It will work for all tradeskills including Runeforging. == Where to get it == -[http://www.wowace.com/projects/arl/files/ WoW Ace] - Often Beta quality +[http://www.wowace.com/projects/arl/files/ WoW Ace] - Alpha Quality -[http://wow.curse.com/downloads/wow-addons/details/arl.aspx Curse] - Most updated stable version +[http://wow.curse.com/downloads/wow-addons/details/arl.aspx Curse] - Stable release -[http://wowui.incgamers.com/?p=mod&m=5061 Wow UI] - Stable version - -[http://www.wowinterface.com/downloads/info8512-AckisRecipeList.html WoWInterface] - Stable version +[http://www.wowinterface.com/downloads/info8512-AckisRecipeList.html WoWInterface] - Stable release == How to get it to work ==