Mercurial > wow > mailopener
comparison Core.lua @ 116:cff956d6e9d0
Now compatible with my version of QuickAuctions.
| author | Zerotorescue |
|---|---|
| date | Tue, 12 Oct 2010 11:38:36 +0200 |
| parents | 97205db58bad |
| children | 13243f627bf4 |
comparison
equal
deleted
inserted
replaced
| 115:97205db58bad | 116:cff956d6e9d0 |
|---|---|
| 294 | 294 |
| 295 -- Ensure this addon is loaded if AddonLoader is installed | 295 -- Ensure this addon is loaded if AddonLoader is installed |
| 296 if AddonLoader and AddonLoader.LoadAddOn then | 296 if AddonLoader and AddonLoader.LoadAddOn then |
| 297 AddonLoader:LoadAddOn("QuickAuctions"); | 297 AddonLoader:LoadAddOn("QuickAuctions"); |
| 298 end | 298 end |
| 299 elseif select(6, GetAddOnInfo("ZeroAuctions")) == nil then | |
| 300 self.QuickAuctionsEnabled = true; -- Set this as an object variable so we can use it in our modules | |
| 301 | |
| 302 -- Ensure this addon is loaded if AddonLoader is installed | |
| 303 if AddonLoader and AddonLoader.LoadAddOn then | |
| 304 AddonLoader:LoadAddOn("ZeroAuctions"); | |
| 305 end | |
| 299 end | 306 end |
| 300 | 307 |
| 301 | 308 |
| 302 | 309 |
| 303 | 310 |
| 436 if QAMail then | 443 if QAMail then |
| 437 -- Hide the open all button | 444 -- Hide the open all button |
| 438 QAMail.massOpening:Hide(); | 445 QAMail.massOpening:Hide(); |
| 439 -- Hide the x mail remaining text | 446 -- Hide the x mail remaining text |
| 440 QAMail.totalMail:Hide(); | 447 QAMail.totalMail:Hide(); |
| 448 else | |
| 449 local ZAMail = LibStub("AceAddon-3.0"):GetAddon("ZeroAuctions", true):GetModule("Mail", true); | |
| 450 | |
| 451 if ZAMail then | |
| 452 -- Hide the open all button | |
| 453 ZAMail.massOpening:Hide(); | |
| 454 -- Hide the x mail remaining text | |
| 455 ZAMail.totalMail:Hide(); | |
| 456 end | |
| 441 end | 457 end |
| 442 end | 458 end |
| 443 | 459 |
| 444 hasOpenedMailAlready = nil; | 460 hasOpenedMailAlready = nil; |
| 445 mailboxEmptySoundPlayed = nil; | 461 mailboxEmptySoundPlayed = nil; |
| 608 | 624 |
| 609 if self.QuickAuctionsEnabled then | 625 if self.QuickAuctionsEnabled then |
| 610 -- Quick Auctions enabled? | 626 -- Quick Auctions enabled? |
| 611 -- Toggle automailing as per settings | 627 -- Toggle automailing as per settings |
| 612 | 628 |
| 613 if self.db.profile.general.autoReenableQAAutoMail and QuickAuctionsAutoMail and not QuickAuctionsAutoMail:GetChecked() then | 629 if self.db.profile.general.autoReenableQAAutoMail and QuickAuctionsAutoMail and not QuickAuctionsAutoMail:GetChecked() then |
| 614 -- If auto re-enable "QA Auto mail" is enabled and QA's auto mail is currently toggled OFF, turn it on | 630 -- If auto re-enable "QA Auto mail" is enabled and QA's auto mail is currently toggled OFF, turn it on |
| 615 -- We need to do this with a :click to trigger the right events | 631 -- We need to do this with a :click to trigger the right events |
| 616 | 632 |
| 617 self:Debug("Turning automail |cff00ff00on|r."); | 633 self:Debug("Turning automail |cff00ff00on|r."); |
| 618 | 634 |
