diff 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
line wrap: on
line diff
--- a/Modules/Config.lua	Tue Sep 07 17:46:27 2010 +0200
+++ b/Modules/Config.lua	Tue Sep 07 17:49:39 2010 +0200
@@ -1,6 +1,12 @@
 local MailOpener = LibStub("AceAddon-3.0"):GetAddon("MailOpener");
 local Config = MailOpener:NewModule("Config", "AceEvent-3.0", "AceTimer-3.0");
 
+--[[
+Module name:	Config
+Description:	Builds and loads the config frame(s) and handles the slash commands.
+Required:		No (default off).
+]]
+
 local Media = LibStub("LibSharedMedia-3.0");
 Media:Register("sound", "Cartoon FX", [[Sound\Doodad\Goblin_Lottery_Open03.wav]]);
 Media:Register("sound", "Cheer", [[Sound\Event Sounds\OgreEventCheerUnique.wav]]);
@@ -134,8 +140,9 @@
 						name = "Default mail opener status",
 						desc = "Select the default Mail Opener status when you open a mailbox for the first time since your log on.",
 						values = {
-							_enabled = "Enabled",
-							disabled = "Disabled",
+							_enabled = "Completely enabled",
+							disabled = "Auto opening disabled",
+							xdisabled = "Addon Disabled",
 						},
 						get = function() return MailOpener.db.profile.general.defaultStatus; end,
 						set = function(i, v) MailOpener.db.profile.general.defaultStatus = v; end,