Mercurial > wow > reagentmaker
diff ReagentMaker.lua @ 110:d60d6b4cab0c
Tradeskill in external window should now be functional
author | contrebasse |
---|---|
date | Thu, 02 Jun 2011 18:23:42 +0200 |
parents | 618163a6d970 |
children | af23986010ef |
line wrap: on
line diff
--- a/ReagentMaker.lua Thu Jun 02 14:12:49 2011 +0200 +++ b/ReagentMaker.lua Thu Jun 02 18:23:42 2011 +0200 @@ -92,6 +92,7 @@ local textureHighlight = btn:CreateTexture() textureHighlight:Hide() textureHighlight:SetTexture("Interface\\BUTTONS\\CheckButtonHilight") + --textureHighlight:SetTexture("Interface\\BUTTONS\\ButtonHilight-Square") textureHighlight:SetBlendMode("ADD") textureHighlight:SetAllPoints("TradeSkillReagent"..i.."IconTexture") btn.textureHighlight = textureHighlight @@ -140,7 +141,7 @@ -- If only one recipe is known for the reagent, use it if #(A.data[reagentID]) == 1 and not A.data[reagentID][1].macro then - if A.data[reagentID][1].spellName and A.data[reagentID][1].spellName ~= GetTradeSkillLine() then + if A.data[reagentID][1].tradeskillName and A.data[reagentID][1].tradeskillName ~= GetTradeSkillLine() then A.Error(A.L["The recipe to make this reagent is in another tradeskill. Currently ReagentMaker can not manage such a case, sorry."]) return end @@ -227,7 +228,7 @@ for i = 1,numToMake:len() do StackSplitFrame_OnChar(StackSplitFrame,numToMake:gsub(i,i)) end - StackSplitFrame.typing = 0 -- reinit the frame so tha the entered value will be erased on text entry + StackSplitFrame.typing = 0 -- reinit the frame so that the entered value will be erased on text entry else DoTradeSkill(reagentIndex,numToMake) end -- if