Mercurial > wow > mailopener
comparison Core.lua @ 2:57ba1593ac42
Reducing amount of calculations regarding mail updates, all mail changes are now addon-wide broadcasted messages. Main reason for this is to allow for another plugin.
| author | Zerotorescue |
|---|---|
| date | Sun, 05 Sep 2010 17:26:35 +0200 |
| parents | 6f17035de058 |
| children | c6f0976069c7 |
comparison
equal
deleted
inserted
replaced
| 1:6f17035de058 | 2:57ba1593ac42 |
|---|---|
| 336 -- Allow overriding of mailopening with the shift key | 336 -- Allow overriding of mailopening with the shift key |
| 337 | 337 |
| 338 -- Open the current mail | 338 -- Open the current mail |
| 339 self:ScheduleOpen(false); | 339 self:ScheduleOpen(false); |
| 340 end | 340 end |
| 341 elseif current < tempLastAmount then | |
| 342 -- We lost a mail | |
| 343 | |
| 344 -- Yell that we successfully opened/removed a mail | |
| 345 self:SendMessage("MO_MAIL_DELETED"); | |
| 341 elseif (current == 50 and tempLastAmount == 50) then | 346 elseif (current == 50 and tempLastAmount == 50) then |
| 342 if not IsShiftKeyDown() then | 347 if not IsShiftKeyDown() then |
| 343 -- Allow overriding of mailopening with the shift key | 348 -- Allow overriding of mailopening with the shift key |
| 344 | 349 |
| 345 -- Open the current mail | 350 -- Open the current mail |
