comparison Core.lua @ 6:f10c8a083d2a

The ALPHA help request popup should pop when the addon is enabled for every 15th time. I really would like some data to. The timer to start opening mail when you open the mailbox will now use the initial mail opening delay.
author Zerotorescue
date Wed, 08 Sep 2010 00:48:37 +0200
parents 1ba07a64bf14
children 7249f9f1205a
comparison
equal deleted inserted replaced
5:1ba07a64bf14 6:f10c8a083d2a
235 lastAmount = 0; 235 lastAmount = 0;
236 self.debugChannel = nil; 236 self.debugChannel = nil;
237 237
238 self.db.global.uses = ( self.db.global.uses + 1 ); 238 self.db.global.uses = ( self.db.global.uses + 1 );
239 239
240 if self.db.global.uses == 15 then 240 if (self.db.global.uses % 15) == 0 then
241 -- Automatically show once every 15 uses
241 self:ShowBetaPopup(); 242 self:ShowBetaPopup();
242 end 243 end
243 244
244 -- If we were toggling this addon on while the mailbox is opened we must register all events again 245 -- If we were toggling this addon on while the mailbox is opened we must register all events again
245 if MailFrame:IsVisible() then 246 if MailFrame:IsVisible() then
318 mailboxEmptySoundPlayed = nil; 319 mailboxEmptySoundPlayed = nil;
319 320
320 self:Recheck(); 321 self:Recheck();
321 322
322 if self.db.profile.general.continueOpening then 323 if self.db.profile.general.continueOpening then
323 self:ScheduleOpen(true); 324 -- Continue opening mail, but use the "initial mail opening interval" as time
325 self:ScheduleOpen(false);
324 end 326 end
325 end 327 end
326 328
327 -- Fired after a successful server sync 329 -- Fired after a successful server sync
328 -- Fired when mail is deleted (which happens after taking all attachments from a mail sent by the game) 330 -- Fired when mail is deleted (which happens after taking all attachments from a mail sent by the game)