From 52dace6b32cd9cb6cc98717f420afc79a2967d33 Mon Sep 17 00:00:00 2001 From: Ackis Date: Tue, 21 Oct 2008 15:55:33 +0000 Subject: [PATCH] Attempted fix for the progress bar and removal of another global that's not needed --- ARLFrame.lua | 2 +- AckisRecipeList.lua | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/ARLFrame.lua b/ARLFrame.lua index e91ffa5..3538c81 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -138,7 +138,7 @@ function ReDisplay( ) pbMax = playerData.totalRecipes -- We're removing filtered recipes from the final count else - pbMax = playerData.totalRecipes - playerData.filteredRecipes + pbMax = playerData.totalRecipes - playerData.filteredRecipes + playerdata.foundRecipes end ARL_ProgressBar:SetMinMaxValues( pbMin, pbMax) ARL_ProgressBar:SetValue( pbCur ) diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index 66d5351..0f0aa12 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -68,7 +68,6 @@ local tremove = table.remove local tsort = table.sort local tinsert = table.insert local sfind = string.find -local InterfaceOptionsFrame_OpenToFrame = InterfaceOptionsFrame_OpenToFrame local BOOKTYPE_SPELL = BOOKTYPE_SPELL local guildname = GetGuildInfo("player") @@ -89,9 +88,6 @@ addon.addonversion = GetAddOnMetadata("AckisRecipeList", "Version") --addon.ARLTitle = "ARL (v." .. addon.addonversion .. ")" --addon.FullTitle = "Ackis Recipe List (v." .. addon.addonversion .. ")" --- We use line breaks quite often lets make it a constant send you can't use \t in WoW -addon.br = "\n - " -- Nuke this - --[[ Initialization functions @@ -426,7 +422,7 @@ function addon:GetTradeSpecialty(SpecialtyTable, playerdata) -- We have a match, return that spell name elseif (SpecialtyTable[playerdata.playerProfession]) and (SpecialtyTable[playerdata.playerProfession][spellName]) then - local _, _, ID = string.find(GetSpellLink(spellName), "spell:(%d+)") + local _, _, ID = sfind(GetSpellLink(spellName), "spell:(%d+)") return ID end @@ -1476,7 +1472,7 @@ do else self:Print("Debug: Found (known) Recipes: " .. playerdata.foundRecipes) - self:Print("Debug: Total Recipes: " .. playerdata.totalRecipes) + self:Print("Debug: Total Recipes in Database: " .. playerdata.totalRecipes) self:Print("Debug: Filtered Recipes: " .. playerdata.filteredRecipes) self:CreateFrame(RecipeList, sortedindex, playerdata, AllSpecialtiesTable, TrainerList, VendorList, QuestList, ReputationList, -- 1.7.9.5