From 52ecc58ec334f185ab2b709c8220234e36833381 Mon Sep 17 00:00:00 2001 From: ackis Date: Thu, 15 Jan 2009 18:30:17 +0000 Subject: [PATCH] Add header to text dump. --- AckisRecipeList.lua | 7 +++---- Docs/Documentation.txt | 24 +++++++----------------- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index cba6ba7..ca506d6 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -2043,16 +2043,15 @@ function addon:GetTextDump(RecipeDB) local texttable = {} + -- Add a header to the text table + tinsert(texttable,"Spell ID, Recipe Name, Skill Level, Known") + for SpellID in pairs(RecipeDB) do if (RecipeDB[SpellID]["Known"]) then - tinsert(texttable,SpellID .. "," .. RecipeDB[SpellID]["Name"] .. "," .. RecipeDB[SpellID]["Level"] .. "," .. ",true") - else - tinsert(texttable,SpellID .. "," .. RecipeDB[SpellID]["Name"] .. "," .. RecipeDB[SpellID]["Level"] .. "," .. ",false") - end end diff --git a/Docs/Documentation.txt b/Docs/Documentation.txt index 8ddf156..c49a83a 100644 --- a/Docs/Documentation.txt +++ b/Docs/Documentation.txt @@ -2,27 +2,17 @@ Documentation.txt Database and code documentation for Ackis Recipe List. -File date: @file-date-iso@ -File revision: @file-revision@ -Project revision: @project-revision@ -Project version: @project-version@ - ==Localization== All the localization files are located in the "Locals" sub-directory. Feel free to edit locals in any language, make the enUS more effecient, correct typos, etc. All I would ask is if you do edit something, check in-game first to make sure the change works. ==Graphical Interface== - All the graphical interface functions are located in ARLFrame.lua. - This file contains all the functions needed for the GUI. If you - have enhancements, know how to fix an issue, etc please feel free to - contribute. Just leave a detailed commit note. If it's a new - feature please run it by me first before adding anything. - -In the RecipeDB is a single file for each profession. Each recipe is inserted -into the database via 3 functions. For example: - - self:addTradeSkill(RecipeDB, 25610, 120, 20950, 1) - self:addTradeFlags(RecipeDB, 25610, 1,2,3,4,21,22,23,24,25,26,27,28,29,30,36,40,41,47,56,62) - self:addTradeAcquire(RecipeDB, 25610, 2, 4877, 2, 1448) +All the graphical interface functions are located in ARLFrame.lua. This file contains all the functions needed for the GUI. If you have enhancements, know how to fix an issue, etc please feel free to contribute. Just leave a detailed commit note. If it's a new feature please run it by me first before adding anything. + +In the RecipeDB is a single file for each profession. Each recipe is inserted into the database via 3 functions. For example: + + self:addTradeSkill(RecipeDB, 25610, 120, 20950, 1) + self:addTradeFlags(RecipeDB, 25610, 1,2,3,4,21,22,23,24,25,26,27,28,29,30,36,40,41,47,56,62) + self:addTradeAcquire(RecipeDB, 25610, 2, 4877, 2, 1448) ==addTradeSkill== This function adds the main recipe entry, including the following information: -- 1.7.9.5