Mercurial > wow > mailopener
comparison Modules/Config.lua @ 174:463e29ca6b08
More merging'
| author | Zachary Kotlarek <zach@kotlarek.com> |
|---|---|
| date | Sun, 10 Mar 2013 16:08:39 -0700 |
| parents | 42d8e16e8483 |
| children |
comparison
equal
deleted
inserted
replaced
| 173:7452702f6f35 | 174:463e29ca6b08 |
|---|---|
| 172 -- Register options table | 172 -- Register options table |
| 173 LibStub("AceConfig-3.0"):RegisterOptionsTable("Mail Opener", options); | 173 LibStub("AceConfig-3.0"):RegisterOptionsTable("Mail Opener", options); |
| 174 -- Set a nice default size | 174 -- Set a nice default size |
| 175 AceConfigDialog:SetDefaultSize("Mail Opener", 950, 600); | 175 AceConfigDialog:SetDefaultSize("Mail Opener", 950, 600); |
| 176 | 176 |
| 177 -- In case the addon is loaded from another condition, always call the remove interface options | 177 -- Remove our old config tab |
| 178 if AddonLoader and AddonLoader.RemoveInterfaceOptions then | 178 for k, f in ipairs(INTERFACEOPTIONS_ADDONCATEGORIES) do |
| 179 AddonLoader:RemoveInterfaceOptions("Mail Opener"); | 179 if f == "Mail Opener" or f.name == "Mail Opener" then |
| 180 tremove(INTERFACEOPTIONS_ADDONCATEGORIES, k); | |
| 181 break; | |
| 182 end | |
| 180 end | 183 end |
| 181 | 184 |
| 182 -- Add to the blizzard addons options thing | 185 -- Add to the blizzard addons options thing |
| 183 AceConfigDialog:AddToBlizOptions("Mail Opener"); | 186 AceConfigDialog:AddToBlizOptions("Mail Opener"); |
| 184 end | 187 end |
| 398 _enabled = L["Enabled"], | 401 _enabled = L["Enabled"], |
| 399 disabled = L["Disabled"], | 402 disabled = L["Disabled"], |
| 400 }, | 403 }, |
| 401 get = function() return MailOpener.db.profile.general.defaultQAStatus; end, | 404 get = function() return MailOpener.db.profile.general.defaultQAStatus; end, |
| 402 set = function(i, v) MailOpener.db.profile.general.defaultQAStatus = v; end, | 405 set = function(i, v) MailOpener.db.profile.general.defaultQAStatus = v; end, |
| 403 hidden = (not MailOpener.QuickAuctionsEnabled), | 406 hidden = (not MailOpener.ZeroAuctionsEnabled), |
| 407 }, | |
| 408 overrideCheckInbox = { | |
| 409 order = 12, | |
| 410 type = "toggle", | |
| 411 name = L["Don't refresh the mailbox while there is still mail waiting to be opened"], | |
| 412 desc = L["Having this option toggled on will prevent the mailbox from automatically refreshing while there is still openable mail remaining.\n\nIf you close the mailbox while there is still mail remaining, your client will always try to refresh the inbox when you reopen it. This feature will wait with refreshing until there is no openable mail remaining, possibly saving a few seconds."], | |
| 413 width = "full", | |
| 414 get = function() return MailOpener.db.profile.general.overrideCheckInbox; end, | |
| 415 set = function(i, v) MailOpener.db.profile.general.overrideCheckInbox = v; end, | |
| 404 }, | 416 }, |
| 405 continueOpeningStackableItems = { | 417 continueOpeningStackableItems = { |
| 406 order = 15, | 418 order = 15, |
| 407 type = "toggle", | 419 type = "toggle", |
| 408 name = L["Continue trying to open mail after your bags are full"], | 420 name = L["Continue trying to open mail after your bags are full"], |
| 426 name = L["Turn Quick Auction's auto mail status |cffff0000off|r when opening mail"], | 438 name = L["Turn Quick Auction's auto mail status |cffff0000off|r when opening mail"], |
| 427 desc = L["Quick Auction's auto mail is buggy when using other mail opening addons. If you are collecting mail while auto mailer is enabled wrong items may be send to the wrong character.\n\nTo solve this you must disable Quick Auction's auto mail while opening mail and you can re-enable it when mail opening is finished."], | 439 desc = L["Quick Auction's auto mail is buggy when using other mail opening addons. If you are collecting mail while auto mailer is enabled wrong items may be send to the wrong character.\n\nTo solve this you must disable Quick Auction's auto mail while opening mail and you can re-enable it when mail opening is finished."], |
| 428 width = "full", | 440 width = "full", |
| 429 get = function() return MailOpener.db.profile.general.autoDisableQAAutoMail; end, | 441 get = function() return MailOpener.db.profile.general.autoDisableQAAutoMail; end, |
| 430 set = function(i, v) MailOpener.db.profile.general.autoDisableQAAutoMail = v; end, | 442 set = function(i, v) MailOpener.db.profile.general.autoDisableQAAutoMail = v; end, |
| 431 hidden = (not MailOpener.QuickAuctionsEnabled), | 443 hidden = (not MailOpener.ZeroAuctionsEnabled), |
| 432 }, | 444 }, |
| 433 autoReenableQAAutoMail = { | 445 autoReenableQAAutoMail = { |
| 434 order = 30, | 446 order = 30, |
| 435 type = "toggle", | 447 type = "toggle", |
| 436 name = L["Turn Quick Auction's auto mail status |cff00ff00on|r after opening mail has finished"], | 448 name = L["Turn Quick Auction's auto mail status |cff00ff00on|r after opening mail has finished"], |
| 437 desc = L["Quick Auction's auto mail is buggy when using other mail opening addons. If you are collecting mail while auto mailer is enabled wrong items may be send to the wrong character.\n\nTo solve this you must disable Quick Auction's auto mail while opening mail and you can re-enable it when mail opening is finished."], | 449 desc = L["Quick Auction's auto mail is buggy when using other mail opening addons. If you are collecting mail while auto mailer is enabled wrong items may be send to the wrong character.\n\nTo solve this you must disable Quick Auction's auto mail while opening mail and you can re-enable it when mail opening is finished."], |
| 438 width = "full", | 450 width = "full", |
| 439 get = function() return MailOpener.db.profile.general.autoReenableQAAutoMail; end, | 451 get = function() return MailOpener.db.profile.general.autoReenableQAAutoMail; end, |
| 440 set = function(i, v) MailOpener.db.profile.general.autoReenableQAAutoMail = v; end, | 452 set = function(i, v) MailOpener.db.profile.general.autoReenableQAAutoMail = v; end, |
| 441 hidden = (not MailOpener.QuickAuctionsEnabled), | 453 hidden = (not MailOpener.ZeroAuctionsEnabled), |
| 442 disabled = function() return (MailOpener.db.profile.general.autoSetBackQAAutoMail and not MailOpener.db.profile.general.autoReenableQAAutoMail); end, | 454 disabled = function() return (MailOpener.db.profile.general.autoSetBackQAAutoMail and not MailOpener.db.profile.general.autoReenableQAAutoMail); end, |
| 443 }, | 455 }, |
| 444 autoSetBackQAAutoMail = { | 456 autoSetBackQAAutoMail = { |
| 445 order = 40, | 457 order = 40, |
| 446 type = "toggle", | 458 type = "toggle", |
| 447 name = L["Set Quick Auction's auto mail status |cff00ffffback|r after opening mail has finished (remember it)"], | 459 name = L["Set Quick Auction's auto mail status |cff00ffffback|r after opening mail has finished (remember it)"], |
| 448 desc = L["Instead of always turning Quick Auction's auto mail on after mail opening you can choose to set it back to the value it was prior to opening mail."], | 460 desc = L["Instead of always turning Quick Auction's auto mail on after mail opening you can choose to set it back to the value it was prior to opening mail."], |
| 449 width = "full", | 461 width = "full", |
| 450 get = function() return MailOpener.db.profile.general.autoSetBackQAAutoMail; end, | 462 get = function() return MailOpener.db.profile.general.autoSetBackQAAutoMail; end, |
| 451 set = function(i, v) MailOpener.db.profile.general.autoSetBackQAAutoMail = v; end, | 463 set = function(i, v) MailOpener.db.profile.general.autoSetBackQAAutoMail = v; end, |
| 452 hidden = (not MailOpener.QuickAuctionsEnabled), | 464 hidden = (not MailOpener.ZeroAuctionsEnabled), |
| 453 disabled = function() return (MailOpener.db.profile.general.autoReenableQAAutoMail and not MailOpener.db.profile.general.autoSetBackQAAutoMail); end, | 465 disabled = function() return (MailOpener.db.profile.general.autoReenableQAAutoMail and not MailOpener.db.profile.general.autoSetBackQAAutoMail); end, |
| 454 }, | 466 }, |
| 455 }, | 467 }, |
| 456 }, -- end General config inline group | 468 }, -- end General config inline group |
| 457 -- Profile config inline group | 469 -- Profile config inline group |
