Mercurial > wow > mailopener
comparison Modules/Config.lua @ 4:2dd6005d41f3
Added an option to the default mail opener status to have the auto opening disabled while the addon remains enabled.
| author | Zerotorescue |
|---|---|
| date | Tue, 07 Sep 2010 17:49:39 +0200 |
| parents | 823e33465b6e |
| children | 90d58723ac0a |
comparison
equal
deleted
inserted
replaced
| 3:c6f0976069c7 | 4:2dd6005d41f3 |
|---|---|
| 1 local MailOpener = LibStub("AceAddon-3.0"):GetAddon("MailOpener"); | 1 local MailOpener = LibStub("AceAddon-3.0"):GetAddon("MailOpener"); |
| 2 local Config = MailOpener:NewModule("Config", "AceEvent-3.0", "AceTimer-3.0"); | 2 local Config = MailOpener:NewModule("Config", "AceEvent-3.0", "AceTimer-3.0"); |
| 3 | |
| 4 --[[ | |
| 5 Module name: Config | |
| 6 Description: Builds and loads the config frame(s) and handles the slash commands. | |
| 7 Required: No (default off). | |
| 8 ]] | |
| 3 | 9 |
| 4 local Media = LibStub("LibSharedMedia-3.0"); | 10 local Media = LibStub("LibSharedMedia-3.0"); |
| 5 Media:Register("sound", "Cartoon FX", [[Sound\Doodad\Goblin_Lottery_Open03.wav]]); | 11 Media:Register("sound", "Cartoon FX", [[Sound\Doodad\Goblin_Lottery_Open03.wav]]); |
| 6 Media:Register("sound", "Cheer", [[Sound\Event Sounds\OgreEventCheerUnique.wav]]); | 12 Media:Register("sound", "Cheer", [[Sound\Event Sounds\OgreEventCheerUnique.wav]]); |
| 7 Media:Register("sound", "Explosion", [[Sound\Doodad\Hellfire_Raid_FX_Explosion05.wav]]); | 13 Media:Register("sound", "Explosion", [[Sound\Doodad\Hellfire_Raid_FX_Explosion05.wav]]); |
| 132 order = 0, | 138 order = 0, |
| 133 type = "select", | 139 type = "select", |
| 134 name = "Default mail opener status", | 140 name = "Default mail opener status", |
| 135 desc = "Select the default Mail Opener status when you open a mailbox for the first time since your log on.", | 141 desc = "Select the default Mail Opener status when you open a mailbox for the first time since your log on.", |
| 136 values = { | 142 values = { |
| 137 _enabled = "Enabled", | 143 _enabled = "Completely enabled", |
| 138 disabled = "Disabled", | 144 disabled = "Auto opening disabled", |
| 145 xdisabled = "Addon Disabled", | |
| 139 }, | 146 }, |
| 140 get = function() return MailOpener.db.profile.general.defaultStatus; end, | 147 get = function() return MailOpener.db.profile.general.defaultStatus; end, |
| 141 set = function(i, v) MailOpener.db.profile.general.defaultStatus = v; end, | 148 set = function(i, v) MailOpener.db.profile.general.defaultStatus = v; end, |
| 142 }, | 149 }, |
| 143 defaultQAStatus = { | 150 defaultQAStatus = { |
