annotate Plugins/CraftingAddons/TradeskillMaster_Crafting.lua @ 249:fa21e06ca268 tip

Added tag v1.0.1-ALPHA for changeset 50aece0904ec
author Zerotorescue
date Tue, 08 Mar 2011 12:07:24 +0100
parents 2bba1734cb17
children
rev   line source
Zerotorescue@247 1 do
Zerotorescue@247 2
Zerotorescue@247 3 local function Queue(tradeSkillIndex, amount)
Zerotorescue@247 4 local resultItemLink = GetTradeSkillItemLink(tradeSkillIndex);
Zerotorescue@247 5
Zerotorescue@247 6 return TSMAPI:AddItemToQueue(resultItemLink, amount, true);
Zerotorescue@247 7 end
Zerotorescue@247 8
Zerotorescue@247 9 local function IsEnabled()
Zerotorescue@247 10 return (TSMAPI and TSMAPI.AddItemToQueue);
Zerotorescue@247 11 end
Zerotorescue@247 12
Zerotorescue@247 13 IMRegisterCraftingAddon("TradeskillMaster_Crafting", Queue, IsEnabled);
Zerotorescue@247 14
Zerotorescue@247 15 end