Mercurial > wow > itemauditor
comparison Modules/QuickAuctions.lua @ 119:d94195157a6b
Moved the check for QAManager so it doesn't interfere with the tooltip or ArkInventory rule.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Thu, 02 Sep 2010 21:16:04 -0700 |
parents | 619ee0a1ff3b |
children | 5f6182a97d40 |
comparison
equal
deleted
inserted
replaced
118:92b66533c386 | 119:d94195157a6b |
---|---|
25 end | 25 end |
26 | 26 |
27 | 27 |
28 | 28 |
29 function ItemAuditor:IsQACompatible() | 29 function ItemAuditor:IsQACompatible() |
30 local qam = GetAddOnInfo('QAManager') | |
31 if qam then | |
32 ItemAuditor.Options.args.qa_options.disabled = true | |
33 if ItemAuditor.db.char.use_quick_auctions then | |
34 ItemAuditor.db.char.use_quick_auctions = false | |
35 StaticPopupDialogs["ItemAuditor_QAOptionsReplaced"] = { | |
36 text = "The ability to have ItemAuditor adjust your QA thresholds is being moved to QAManager. If you have to use the options within ItemAuditor you can disable QAManager to restore them for now, but this option will change in the future.", | |
37 button1 = "OK", | |
38 timeout = 0, | |
39 whileDead = true, | |
40 hideOnEscape = true, | |
41 OnAccept = function() | |
42 -- StaticPopupDialogs["ItemAuditor_QAOptionsReplaced"] = nil | |
43 end, | |
44 } | |
45 StaticPopup_Show('ItemAuditor_QAOptionsReplaced') | |
46 end | |
47 return false | |
48 end | |
49 return (QAAPI ~= nil and QAAPI.GetGroupConfig ~= nil) | 30 return (QAAPI ~= nil and QAAPI.GetGroupConfig ~= nil) |
50 end | 31 end |
51 | 32 |
52 function ItemAuditor:IsQAEnabled() | 33 function ItemAuditor:IsQAEnabled() |
53 return ItemAuditor:IsQACompatible() and ItemAuditor.db.char.use_quick_auctions | 34 if ItemAuditor:IsQACompatible() then |
35 local qam = GetAddOnInfo('QAManager') | |
36 if qam then | |
37 ItemAuditor.Options.args.qa_options.disabled = true | |
38 if ItemAuditor.db.char.use_quick_auctions then | |
39 ItemAuditor.db.char.use_quick_auctions = false | |
40 StaticPopupDialogs["ItemAuditor_QAOptionsReplaced"] = { | |
41 text = "The ability to have ItemAuditor adjust your QA thresholds is being moved to QAManager. If you have to use the options within ItemAuditor you can disable QAManager to restore them for now, but this option will change in the future.", | |
42 button1 = "OK", | |
43 timeout = 0, | |
44 whileDead = true, | |
45 hideOnEscape = true, | |
46 OnAccept = function() | |
47 -- StaticPopupDialogs["ItemAuditor_QAOptionsReplaced"] = nil | |
48 end, | |
49 } | |
50 StaticPopup_Show('ItemAuditor_QAOptionsReplaced') | |
51 end | |
52 return false | |
53 end | |
54 return ItemAuditor.db.char.use_quick_auctions | |
55 end | |
56 return false | |
54 end | 57 end |
55 | 58 |
56 function ItemAuditor:IsQADisabled() | 59 function ItemAuditor:IsQADisabled() |
57 return not self:IsQAEnabled() | 60 return not self:IsQAEnabled() |
58 end | 61 end |