view CraftingAddons/Cauldron.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 ac1189599769
children 2127ab01ed4a
line wrap: on
line source
do
	
	local function Queue(tradeSkillIndex, amount)
		CauldronQueue:AddItem(Cauldron.db.realm.userdata[Cauldron.vars.playername].queue, skillInfo, amount);
			
		Cauldron:UpdateQueue();
		
		-- update the shopping list
		Cauldron:UpdateShoppingListFromQueue();
		
		return;
	end
	
	local function IsEnabled()
		return (Cauldron and CauldronQueue and CauldronQueue.AddItem);
	end
	
	local function OnSelect()
		local addonName = "|r|cfffed000Cauldron|r|cffff6600";
		
		print("|cffff6600" .. addonName .. " has not yet been tested. Please report any of your experiences.|r");
	end
	
	IMRegisterCraftingAddon("Cauldron", Queue, IsEnabled, OnSelect);
	
end