changeset 247:2bba1734cb17

Added support for TradeSkillMaster_Crafting.
author Zerotorescue
date Tue, 08 Mar 2011 12:06:02 +0100
parents 0de442454eb6
children 50aece0904ec
files Plugins/CraftingAddons/CraftingAddons.xml Plugins/CraftingAddons/TradeskillMaster_Crafting.lua
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/CraftingAddons/CraftingAddons.xml	Fri Feb 25 17:44:30 2011 +0100
+++ b/Plugins/CraftingAddons/CraftingAddons.xml	Tue Mar 08 12:06:02 2011 +0100
@@ -4,4 +4,5 @@
 	<Script file="Cauldron.lua"/>
 	<Script file="GnomeWorks.lua"/>
 	<Script file="Skillet.lua"/>
+	<Script file="TradeskillMaster_Crafting.lua"/>
 </Ui>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/CraftingAddons/TradeskillMaster_Crafting.lua	Tue Mar 08 12:06:02 2011 +0100
@@ -0,0 +1,15 @@
+do
+	
+	local function Queue(tradeSkillIndex, amount)
+		local resultItemLink = GetTradeSkillItemLink(tradeSkillIndex);
+		
+		return TSMAPI:AddItemToQueue(resultItemLink, amount, true);
+	end
+	
+	local function IsEnabled()
+		return (TSMAPI and TSMAPI.AddItemToQueue);
+	end
+	
+	IMRegisterCraftingAddon("TradeskillMaster_Crafting", Queue, IsEnabled);
+	
+end