diff ReagentMaker.lua @ 24:5f3a5b88fb19

First attempt to unfilter, failed badly... I'm not even sure it'll be possible at all.
author contrebasse
date Wed, 27 Apr 2011 23:46:20 +0200
parents 8acb6dc1ff9e
children 578b9c9479c9
line wrap: on
line diff
--- a/ReagentMaker.lua	Wed Apr 27 21:55:33 2011 +0200
+++ b/ReagentMaker.lua	Wed Apr 27 23:46:20 2011 +0200
@@ -101,6 +101,7 @@
 
 -- Function run after selecting a item in the tradeskill window
 function A.ProcessReagent(btn, ...)
+
 	-- Do not manage guild tradeskill
 	if IsTradeSkillGuild() or IsTradeSkillLinked() then return end
 
@@ -108,6 +109,8 @@
 	if IsModifierKeyDown() and not IsShiftKeyDown() then return end
 	local chooseNumberToCraft = IsShiftKeyDown()
 
+	--A.SaveActiveFilters()
+
 	-- Index of the reagent in the recipe, taken from the button name
 	local reagentRecipeIndex = A.buttonNumber(btn)
 
@@ -134,6 +137,7 @@
 	else
 		A.externalCraftWindow(reagentID)
 	end -- if
+	--A.RestoreActiveFilters()
 end -- function
 
 
@@ -189,6 +193,8 @@
 	-- 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)
@@ -208,6 +214,9 @@
 			link = GetTradeSkillRecipeLink(A.findSkillIndex(reagentID))
 		end
 	end
+
+	--A.RestoreActiveFilters()
+
 	if link then
 		A.tooltipRecipe:SetOwner(btn)
 		A.tooltipRecipe:SetHyperlink(link)