comparison Core.lua @ 89:a12d22ef3f39

AceSerializer has been enabled again as it?s used when exporting/importing groups. All other unused libraries are now really removed. Adjusted debug function to format only when a debug channel is available. Fixed moving from guild banks, checking if items are locked is different then with banks. Now unregistering the item locking event so it doesn?t continue to try to move every time an item is switched after the automated cycle has finished. (geeezus, this description is a total overkill) Fixed item queueing. Queue all when there?s a group without any items inside no longer crashes. Removing cached container data after closing a container.
author Zerotorescue
date Fri, 07 Jan 2011 22:19:03 +0100
parents 3bec0ea44607
children 31493364b163
comparison
equal deleted inserted replaced
88:f1c035694545 89:a12d22ef3f39
17 addon.supportedAddons.auctionPricing = {}; 17 addon.supportedAddons.auctionPricing = {};
18 addon.supportedAddons.itemCount = {}; 18 addon.supportedAddons.itemCount = {};
19 addon.supportedAddons.crafting = {}; 19 addon.supportedAddons.crafting = {};
20 20
21 function addon:OnInitialize() 21 function addon:OnInitialize()
22 self:Debug("OnInitialize");
23
24 -- SAVED VARIABLES 22 -- SAVED VARIABLES
25 23
26 local defaults = { 24 local defaults = {
27 global = { 25 global = {
28 version = nil, 26 version = nil,
447 return itemLink; 445 return itemLink;
448 end 446 end
449 447
450 -- Debug 448 -- Debug
451 449
452 function addon:Debug(t) 450 function addon:Debug(t, ...)
453 if not self.debugChannel and self.debugChannel ~= false then 451 if not self.debugChannel and self.debugChannel ~= false then
454 -- We want to check just once, so if you add a debug channel later just do a /reload (registering an event for this is wasted resources) 452 -- We want to check just once, so if you add a debug channel later just do a /reload (registering an event for this is wasted resources)
455 self.debugChannel = false; 453 self.debugChannel = false;
456 454
457 for i = 1, NUM_CHAT_WINDOWS do 455 for i = 1, NUM_CHAT_WINDOWS do
462 end 460 end
463 end 461 end
464 end 462 end
465 463
466 if self.debugChannel then 464 if self.debugChannel then
467 self.debugChannel:AddMessage(t); 465 self.debugChannel:AddMessage(t:format(...));
468 end 466 end
469 end 467 end