comparison Core.lua @ 225:2e4e52a589e5

Added onQueueStart and onQueueEnd events to crafting addon registering. GnomeWorks queue frame should automatically be closed before adding items to the queue and opened afterwards to speed this process up.
author Zerotorescue
date Mon, 07 Feb 2011 15:06:41 +0100
parents c04257b42b03
children
comparison
equal deleted inserted replaced
224:f1d08aaafeaa 225:2e4e52a589e5
443 ["GetGuildNames"] = getGuildNames, 443 ["GetGuildNames"] = getGuildNames,
444 ["SetGuildState"] = setGuildState, 444 ["SetGuildState"] = setGuildState,
445 }; 445 };
446 end 446 end
447 447
448 function IMRegisterCraftingAddon(name, queue, enabled, onSelect) 448 function IMRegisterCraftingAddon(name, queue, enabled, onSelect, onQueueStart, onQueueEnd)
449 addon.supportedAddons.crafting[name] = { 449 addon.supportedAddons.crafting[name] = {
450 ["Queue"] = queue, 450 ["Queue"] = queue,
451 ["IsEnabled"] = enabled, 451 ["IsEnabled"] = enabled,
452 ["OnSelect"] = onSelect, 452 ["OnSelect"] = onSelect,
453 ["OnQueueStart"] = onQueueStart,
454 ["OnQueueEnd"] = onQueueEnd,
453 }; 455 };
454 end 456 end
455 457
456 -- We need a global command handler for our chat-links 458 -- We need a global command handler for our chat-links
457 function InventoriumCommandHandler(msg) 459 function InventoriumCommandHandler(msg)