diff Modules/QuickAuctions.lua @ 70:3930518cb8d9

Added a public API so other addon developers can register themselves as a queue destination and added a UI so users can select that destination.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Wed, 28 Jul 2010 22:19:38 -0700
parents 2d65db19d3ce
children aaf9a155995b
line wrap: on
line diff
--- a/Modules/QuickAuctions.lua	Wed Jul 28 21:27:39 2010 -0700
+++ b/Modules/QuickAuctions.lua	Wed Jul 28 22:19:38 2010 -0700
@@ -119,13 +119,15 @@
 
 
 function ItemAuditor:Queue()
+	local dest, name = Crafting.GetQueueDestination()
 	local function Export(data)
-		ItemAuditor:Print(format("Adding %s x%s to skillet queue. Profit: %s", 
+		ItemAuditor:Print(format("Adding %s x%s to %s queue. Profit: %s", 
 			data.link, 
 			data.queue, 
+			name,
 			Utils.FormatMoney(data.profit)
 		))
-		Crafting.ExportToSkillet(data)
+		dest(data)
 	end
 	ItemAuditor:UpdateCraftingTable()
 	Crafting.Export(Export)