From d3a3ac60fcfa1e405fc5ebd553deac47cccee593 Mon Sep 17 00:00:00 2001 From: Ackis Date: Tue, 21 Oct 2008 16:29:48 +0000 Subject: [PATCH] Will have to play with the progress bar tonight with a PC in front of me so Zhinjio doesn't go crazy --- ARLFrame.lua | 4 +++- AckisRecipeList.toc | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ARLFrame.lua b/ARLFrame.lua index 46d5368..cac6bc9 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -129,13 +129,15 @@ function ReDisplay( ) local pbCur = playerData.foundRecipes local pbMin = 0 local pbMax = 100 + -- Include filtered recipes in overall count, so we just display the total number of recipes - if ( addon.db.profile.includefiltered == true ) then + if (addon.db.profile.includefiltered == true) then pbMax = playerData.totalRecipes -- We're removing filtered recipes from the final count else pbMax = playerData.totalRecipes - (playerData.filteredRecipes - playerData.foundRecipes) end + ARL_ProgressBar:SetMinMaxValues( pbMin, pbMax) ARL_ProgressBar:SetValue( pbCur ) ARL_ProgressBarText:SetText( pbCur .. " / " .. pbMax .. " - " .. math.floor( pbCur / pbMax * 100) .. "%") diff --git a/AckisRecipeList.toc b/AckisRecipeList.toc index 2d3169e..c990eb4 100644 --- a/AckisRecipeList.toc +++ b/AckisRecipeList.toc @@ -18,7 +18,7 @@ ## X-Donate: Donate a few bucks/hours at your local animal shelter, or send me UDE Point codes, a Murky Code, or an account upgrade certificate. ## Interface: 30000 -## Version: Beta 4 +## Version: Beta 5 ## X-Revision: $Rev$ ## X-Date: $Date$ -- 1.7.9.5