comparison Core.lua @ 132:27d81641c1e7

Added support for the other QuickAuctions addon called ?AuctionProfitMaster?.
author Zerotorescue
date Wed, 20 Oct 2010 22:37:35 +0200
parents b54116796220
children 9998d4ff8152
comparison
equal deleted inserted replaced
131:f662ee4d9c05 132:27d81641c1e7
296 if AddonLoader and AddonLoader.LoadAddOn and not IsAddOnLoaded("ZeroAuctions") then 296 if AddonLoader and AddonLoader.LoadAddOn and not IsAddOnLoaded("ZeroAuctions") then
297 AddonLoader:LoadAddOn("ZeroAuctions"); 297 AddonLoader:LoadAddOn("ZeroAuctions");
298 end 298 end
299 end 299 end
300 300
301 if select(6, GetAddOnInfo("AuctionProfitMaster")) == nil then
302 self.ZeroAuctionsEnabled = true; -- Set this as an object variable so we can use it in our modules
303
304 -- Ensure this addon is loaded if AddonLoader is installed
305 if AddonLoader and AddonLoader.LoadAddOn and not IsAddOnLoaded("AuctionProfitMaster") then
306 AddonLoader:LoadAddOn("AuctionProfitMaster");
307 end
308 end
309
301 310
302 311
303 312
304 313
305 -- ADJUST POSITIONS 314 -- ADJUST POSITIONS
429 -- Hide the InboxTooMuchMail warning to allow room for our mail remaining info line 438 -- Hide the InboxTooMuchMail warning to allow room for our mail remaining info line
430 InboxTooMuchMail:Hide() 439 InboxTooMuchMail:Hide()
431 InboxTooMuchMail.Show = function() end 440 InboxTooMuchMail.Show = function() end
432 441
433 if self.ZeroAuctionsEnabled then 442 if self.ZeroAuctionsEnabled then
434 local QAMail = LibStub("AceAddon-3.0"):GetAddon("ZeroAuctions", true):GetModule("Mail", true) 443 local AHAddon = LibStub("AceAddon-3.0"):GetAddon("ZeroAuctions", true) or LibStub("AceAddon-3.0"):GetAddon("AuctionProfitMaster", true);
435 444 if AHAddon then
436 if QAMail then 445 local QAMail = AHAddon:GetModule("Mail", true);
437 -- Hide the open all button 446
438 QAMail.massOpening:Hide(); 447 if QAMail then
439 -- Hide the x mail remaining text 448 -- Hide the open all button
440 QAMail.totalMail:Hide(); 449 QAMail.massOpening:Hide();
450 -- Hide the x mail remaining text
451 QAMail.totalMail:Hide();
452 end
441 end 453 end
442 end 454 end
443 455
444 hasOpenedMailAlready = nil; 456 hasOpenedMailAlready = nil;
445 mailboxEmptySoundPlayed = nil; 457 mailboxEmptySoundPlayed = nil;