view CraftingAddons/Cauldron.lua @ 65:ac1189599769

Added warning to AuctionLite pricing addon selection stating the addon wasn?t tested properly yet. Premade groups check now occurs when the config is opened rather than upon login. All multiselects are now dropdowns as they are meant to be. Please ensure the pullouts are closed before switching groups or closing the window or you may get some LUA errors (thanks Wowace for not fixing what seems to be a year old issue). Hopefully added support for the crafting addon ?Cauldron?, but this still has to be tested.
author Zerotorescue
date Thu, 23 Dec 2010 03:19:27 +0100
parents
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