Mercurial > wow > inventory
comparison Modules/Mover.lua @ 117:239e25a058c7
Implemented mail refilling support. Respecting the MailAddonBusy global when opening so addons like MailOpener shouldn?t interfere.
author | Zerotorescue |
---|---|
date | Sat, 15 Jan 2011 13:15:16 +0100 |
parents | 41f0689dfda1 |
children | dc6f405c1a5d |
comparison
equal
deleted
inserted
replaced
116:8356e5acefdc | 117:239e25a058c7 |
---|---|
369 -- Make sure nothing is at the mouse | 369 -- Make sure nothing is at the mouse |
370 ClearCursor(); | 370 ClearCursor(); |
371 | 371 |
372 if movesSource == addon.Locations.Mailbox then | 372 if movesSource == addon.Locations.Mailbox then |
373 MailAddonBusy = addon:GetName(); | 373 MailAddonBusy = addon:GetName(); |
374 | |
375 -- Since mailbox indexes change as mail is emptied (emptied mail is automatically deleted, thus number 50 would become 49 when 1 disappears), we must start with the last mail first | |
376 table.sort(combinedMoves, function(a, b) | |
377 return a.sourceContainer < b.sourceContainer; | |
378 end); | |
374 end | 379 end |
375 | 380 |
376 self:RegisterEvent(ContainerFunctions[movesSource].Event, "SourceUpdated"); | 381 self:RegisterEvent(ContainerFunctions[movesSource].Event, "SourceUpdated"); |
377 self:RegisterEvent("UI_ERROR_MESSAGE"); | 382 self:RegisterEvent("UI_ERROR_MESSAGE"); |
378 | 383 |