From af28060d7b76f166300c94e2d3fe5b9ad32ba28b Mon Sep 17 00:00:00 2001 From: Jim-Bim Date: Wed, 3 Dec 2008 23:32:40 +0000 Subject: [PATCH] AckisRecipeList: - display info text instead of infinity error "-1.#IND%" --- ARLFrame.lua | 7 ++++++- Locals/ARLLocals-enUS.lua | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) 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" -- 1.7.9.5