From bb5e53b2579eac6416e195722e17cb75f77b498c Mon Sep 17 00:00:00 2001 From: ackis Date: Wed, 22 Oct 2008 04:10:13 +0000 Subject: [PATCH] Make progress bar accurate for the first skill you look at --- ARLFrame.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ARLFrame.lua b/ARLFrame.lua index 408f6bc..9d752ba 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -135,8 +135,7 @@ function ReDisplay( ) pbMax = playerData.totalRecipes -- We're removing filtered recipes from the final count else - pbMax = playerData.totalRecipes - (playerData.filteredRecipes + playerData.foundRecipes) - --pbMax = playerData.foundRecipes + (playerData.totalRecipes - playerData.filteredRecipes) + pbMax = (playerData.totalRecipes - playerData.filteredRecipes) + playerData.foundRecipes end ARL_ProgressBar:SetMinMaxValues( pbMin, pbMax) @@ -3130,7 +3129,7 @@ function addon:CreateFrame( if ( addon.db.profile.includefiltered == true ) then pbMax = cPlayer.totalRecipes else - pbMax = cPlayer.totalRecipes - cPlayer.filteredRecipes + pbMax = cPlayer.totalRecipes - cPlayer.filteredRecipes + cPlayer.foundRecipes end ARL_ProgressBar:SetMinMaxValues( pbMin, pbMax) ARL_ProgressBar:SetValue( pbCur ) -- 1.7.9.5