comparison Modules/Summary.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 252292b703ce
comparison
equal deleted inserted replaced
88:f1c035694545 89:a12d22ef3f39
455 455
456 groupTimes.building = ceil( ( GetTime() - groupStartTime ) * 1000 ); 456 groupTimes.building = ceil( ( GetTime() - groupStartTime ) * 1000 );
457 end 457 end
458 458
459 if groupStartTime and groupTimes then 459 if groupStartTime and groupTimes then
460 addon:Debug(printf("Building of %s took %d ms (%d / %d / %d / %d / %d).", groupName, ceil( ( GetTime() - groupStartTime ) * 1000 ), groupTimes.init or 0, groupTimes.sorting or 0, groupTimes.preparing or 0, groupTimes.building or 0, ceil( ( GetTime() - buildStartTime ) * 1000 ))); 460 addon:Debug("Building of %s took %d ms (%d / %d / %d / %d / %d).", groupName, ceil( ( GetTime() - groupStartTime ) * 1000 ), groupTimes.init or 0, groupTimes.sorting or 0, groupTimes.preparing or 0, groupTimes.building or 0, ceil( ( GetTime() - buildStartTime ) * 1000 ));
461 end 461 end
462 end 462 end
463 463
464 mod.scrollFrame:ResumeLayout(); 464 mod.scrollFrame:ResumeLayout();
465 mod.scrollFrame:DoLayout(); 465 mod.scrollFrame:DoLayout();
466 466
467 addon:Debug(printf("Done building summary after %d ms.", ceil( ( GetTime() - buildStartTime ) * 1000 ))); 467 addon:Debug("Done building summary after %d ms.", ceil( ( GetTime() - buildStartTime ) * 1000 ));
468 468
469 if CACHE_ITEMS_TOTAL > 0 then 469 if CACHE_ITEMS_TOTAL > 0 then
470 cacheStart = GetTime(); 470 cacheStart = GetTime();
471 self:CancelTimer(self.tmrUpdater, true); 471 self:CancelTimer(self.tmrUpdater, true);
472 self.tmrUpdater = self:ScheduleRepeatingTimer("UpdateNextItem", .01); -- Once every 100 frames (or once every x frames if you have less than 100 FPS, basically, once every frame) 472 self.tmrUpdater = self:ScheduleRepeatingTimer("UpdateNextItem", .01); -- Once every 100 frames (or once every x frames if you have less than 100 FPS, basically, once every frame)