view CraftingAddons/AdvancedTradeSkillWindow.lua @ 74:8d11fc88ecab

Default summary width is now 700 pixels (up from 650). Changed the item data table into a class which is now also used at the custom widgets.
author Zerotorescue
date Fri, 24 Dec 2010 21:55:11 +0100
parents 5006cb0e97c6
children
line wrap: on
line source
do
	
	local function Queue(tradeSkillIndex, amount)
		local link = GetTradeSkillItemLink(tradeSkillIndex);
		local itemName = link:match("%[([^%[%]]*)%]");
		
		return ATSW_AddJob(itemName, amount);
	end
	
	local function IsEnabled()
		return (ATSW_AddJob);
	end
	
	IMRegisterCraftingAddon("AdvancedTradeSkillWindow", Queue, IsEnabled);
	
end