Mercurial > wow > reagentmaker
diff ReagentMaker.lua @ 33:218e1dd1b821
Hide external frame when selecting a recipe which doesn't need this reagent
author | contrebasse |
---|---|
date | Fri, 29 Apr 2011 00:14:25 +0200 |
parents | 22fa64c9b2de |
children | aa2f6965c0f6 |
line wrap: on
line diff
--- a/ReagentMaker.lua Thu Apr 28 23:39:30 2011 +0200 +++ b/ReagentMaker.lua Fri Apr 29 00:14:25 2011 +0200 @@ -122,17 +122,18 @@ if #(A.data[reagentID]) == 1 and not A.data[reagentID].spell then local numMakable, reagentIndex = A.numMakable(reagentID) if not numMakable then - print("Sorry, i can't determine the number of makables reagents...") + print("Sorry, I can't determine the number of makables reagents...") return end if numMakable>0 then A.craft(reagentID,reagentRecipeIndex,reagentIndex,numMakable,chooseNumberToCraft) return end + -- If we can make the item needed to make the reagent, open a window to make it -- one step recursion, enables to mill to create an ink if A.data[A.data[reagentID][1][1]] then - A.externalCraftWindow(A.data[reagentID][1][1]) + A.externalCraftWindow(A.data[reagentID][1][1],reagentID) else print("Sorry, couldn't make reagent...") end