Mercurial > wow > reagentmaker
diff ReagentMaker.lua @ 28:76414c6318ff
Remove useless comments
author | contrebasse |
---|---|
date | Thu, 28 Apr 2011 19:46:29 +0200 |
parents | fb02770b8b5e |
children | fd76c8951b7d |
line wrap: on
line diff
--- a/ReagentMaker.lua Thu Apr 28 19:44:08 2011 +0200 +++ b/ReagentMaker.lua Thu Apr 28 19:46:29 2011 +0200 @@ -2,7 +2,6 @@ -- @todo clean the A table -- @todo check local copy of globals functions --- @todo show number of craftable items -- @todo show owned items -- @todo add support for dez ? -- @todo add support for cross tradeskill, like mining + forge/ingé @@ -96,11 +95,6 @@ A.tooltipRecipe = CreateFrame("GameTooltip", "ReagentMaker_tooltipRecipe",UIParent, "GameTooltipTemplate") A.tooltipRecipe:SetFrameStrata("TOOLTIP") A.tooltipRecipe:Hide() - --[[ - A.tooltipReagent = CreateFrame("GameTooltip", "ReagentMaker_tooltipReagent",UIParent, "GameTooltipTemplate") - A.tooltipReagent:SetFrameStrata("TOOLTIP") - A.tooltipReagent:Hide() - --]] end -- function -- Function run after selecting a item in the tradeskill window @@ -164,11 +158,9 @@ local numToMake = 1 local selectedIndex = GetTradeSkillSelectionIndex() local skillName, skillType, numAvailable, isExpanded, serviceType, numSkillUps = GetTradeSkillInfo(selectedIndex) - --if numAvailable==0 then - local reagentName, reagentTexture, reagentCount, playerReagentCount = GetTradeSkillReagentInfo(selectedIndex, reagentRecipeIndex) - -- make enough reagents to craft one more item - numToMake = math.min(reagentCount*(1+numAvailable) - playerReagentCount,numReagentMakable) - --end -- if + local reagentName, reagentTexture, reagentCount, playerReagentCount = GetTradeSkillReagentInfo(selectedIndex, reagentRecipeIndex) + -- make enough reagents to craft one more item + numToMake = math.min(reagentCount*(1+numAvailable) - playerReagentCount,numReagentMakable) -- Choose number or craft directly if chooseNumber and numReagentMakable>1 then @@ -201,8 +193,6 @@ -- Index of the reagent in the recipe, taken from the button name local reagentRecipeIndex = A.buttonNumber(btn) - --A.SaveActiveFilters() - -- ID of the reagent we want to craft local reagentLink = GetTradeSkillReagentItemLink(GetTradeSkillSelectionIndex(), reagentRecipeIndex) local reagentID = A.link2ID(reagentLink) @@ -223,8 +213,6 @@ end end - --A.RestoreActiveFilters() - if link then A.tooltipRecipe:SetOwner(btn) A.tooltipRecipe:SetHyperlink(link) @@ -237,7 +225,6 @@ function A.btnLeft(btn) btn.textureHighlight:Hide() A.tooltipRecipe:Hide() - --A.tooltipReagent:Hide() end -- function function A.updateCounts(recipeIndex)