Quantcast

AckisRecipeList:

Jim-Bim [12-03-08 - 23:32]
AckisRecipeList:
- display info text instead of infinity error "-1.#IND%"
Filename
ARLFrame.lua
Locals/ARLLocals-enUS.lua
diff --git a/ARLFrame.lua b/ARLFrame.lua
index 52153eb..cc86a25 100644
--- a/ARLFrame.lua
+++ b/ARLFrame.lua
@@ -1037,7 +1037,12 @@ local function SetProgressBar(playerData)

 	ARL_ProgressBar:SetMinMaxValues(0, pbMax)
 	ARL_ProgressBar:SetValue(pbCur)
-	ARL_ProgressBarText:SetText(pbCur .. " / " .. pbMax .. " - " .. math.floor(pbCur / pbMax * 100) .. "%")
+
+	if math.floor(pbCur / pbMax * 100) <101 then
+		ARL_ProgressBarText:SetText(pbCur .. " / " .. pbMax .. " - " .. math.floor(pbCur / pbMax * 100) .. "%")
+	else
+		ARL_ProgressBarText:SetText(pbCur .. " / " .. pbMax .. " - " .. L["NOT_YET_SCANNED"])
+	end

 end

diff --git a/Locals/ARLLocals-enUS.lua b/Locals/ARLLocals-enUS.lua
index 9e94fea..3e77a3c 100644
--- a/Locals/ARLLocals-enUS.lua
+++ b/Locals/ARLLocals-enUS.lua
@@ -270,6 +270,7 @@ L["ARMOR_ALL_DESC"]			= "Recipes that make ANY armor item should be included in
 L["ARMOR_NONE_DESC"]		= "Do NOT include any recipes that make armor items in the scan."
 L["WEAPON_ALL_DESC"]		= "Recipes that make ANY weapon item should be included in the scan."
 L["WEAPON_NONE_DESC"]		= "Do NOT include any recipes that make weapon items in the scan."
+L["NOT_YET_SCANNED"]		= "not yet scanned!"

 -- Common Tool tip Strings (where different from above)
 L["CTRL_CLICK"]			= "Ctrl-Click to add this recipe's link to your chat"