From dab478c3dea7a6d5744f93f8cd6dff16a45c224a Mon Sep 17 00:00:00 2001 From: ackis Date: Tue, 20 Jan 2009 20:38:39 +0000 Subject: [PATCH] Add some debugging code for when the recipe display is 0, and fix a typo. --- ARLFrame.lua | 25 ++++++++++++++----------- AckisRecipeList.lua | 5 ++--- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/ARLFrame.lua b/ARLFrame.lua index cd41587..293e7c1 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -159,7 +159,7 @@ StaticPopupDialogs["ARL_ALLKNOWN"] = { } StaticPopupDialogs["ARL_ALLEXCLUDED"] = { - text = L["ARL_ALLKNOWN"], + text = L["ARL_ALLEXCLUDED"], button1 = L["Ok"], timeout = 0, exclusive = 1, @@ -929,28 +929,31 @@ local function RecipeList_Update() -- If the recipe total is at 0, it means we have not scanned the profession yet if (playerData.recipes_total == 0) then - + --@debug@ + addon:Print("DEBUG: recipes_total: " .. playerData.recipes_total) + --@end-debug@ StaticPopup_Show("ARL_NOTSCANNED") - -- We know all the recipes elseif (playerData.recipes_known == playerData.recipes_total) then - StaticPopup_Show("ARL_ALLKNOWN") - + --@debug@ + addon:Print("DEBUG: recipes_known: " .. playerData.recipes_known) + --@end-debug@ -- Our filters are actually filtering something elseif ((playerData.recipes_total_filtered - playerData.recipes_known_filtered) ~= 0) then - + --@debug@ + addon:Print("DEBUG: recipes_total_filtered: " .. playerData.recipes_total_filtered) + addon:Print("DEBUG: recipes_known_filtered: " .. playerData.recipes_known_filtered) + --@end-debug@ StaticPopup_Show("ARL_ALLFILTERED") - -- Our exclusion list is preventing something from being displayed elseif (playerData.excluded_recipes_unknown ~= 0) then - + --@debug@ + addon:Print("DEBUG: excluded_recipes_unknown: " .. playerData.excluded_recipes_unknown) + --@end-debug@ StaticPopup_Show("ARL_ALLEXCLUDED") - else - addon:Print(L["NO_DISPLAY"]) - end end diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index 5a5eb85..c5523e3 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -1742,8 +1742,7 @@ do local sortedindex = self:SortMissingRecipes(RecipeList) if (textdump == true) then - local temptext = self:DisplayTextDump(RecipeList) - self:DisplayTextDump(temptext) + self:DisplayTextDump(RecipeList) else self:CreateFrame(RecipeList, sortedindex, playerData, AllSpecialtiesTable, TrainerList, VendorList, QuestList, ReputationList, @@ -2152,7 +2151,7 @@ function addon:MineSkillLevelData() local skillleveltext = "\"" .. name .. "\" => " .. skilllevel .. "," tinsert(t,skillleveltext) end - self:DisplayTextDump(tconcat(t,"\n")) + --self:DisplayTextDump(tconcat(t,"\n")) else self:Print("This can only be used for a trade skill trainer. Dumbass.") end -- 1.7.9.5