# HG changeset patch # User contrebasse # Date 1302283462 -7200 # Node ID c37c2a46723c8e31b487a93b5ec2d9979332a968 # Parent 5336b3a19d4ff18e629e377d178fd7fe8befc2bd Remove debug printing diff -r 5336b3a19d4f -r c37c2a46723c ReagentMaker.lua --- a/ReagentMaker.lua Fri Apr 08 01:01:00 2011 +0200 +++ b/ReagentMaker.lua Fri Apr 08 19:24:22 2011 +0200 @@ -2,13 +2,10 @@ -- @todo clean the A table -- @todo check local copy of globals functions --- @todo add support for sub-recipes (like ink plus milling) --- @todo show a tooltip -- @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é --- @todo icon on reagent's button --------------------------------------------------- -- Variables @@ -33,13 +30,11 @@ t_throttle = t_throttle - t_elapsed if t_throttle<0 then self:SetScript("OnUpdate", nil) - print("go") - + -- Close the external window if the tradeskill changed if A.currentTradeSkill ~= GetTradeSkillLine() then A.MenuFrame:Hide() end - if IsTradeSkillGuild() or IsTradeSkillLinked() then A.MenuFrame:Hide() return @@ -50,25 +45,9 @@ end end A.EventsFrame:SetScript("OnEvent", function(self, event) - print(self,event) if event == "TRADE_SKILL_UPDATE" then t_throttle = SCAN_DELAY self:SetScript("OnUpdate", throttleScan) - - --[[ - -- Close the external window if the tradeskill changed - if A.currentTradeSkill ~= GetTradeSkillLine() then - A.MenuFrame:Hide() - end - - if IsTradeSkillGuild() or IsTradeSkillLinked() then - A.MenuFrame:Hide() - return - end - - -- Scan availabe recipes - A:ScanSimpleRecipes() - --]] elseif event == "TRADE_SKILL_SHOW" then A:Initialize()