diff Modules/Options.lua @ 16:56de19d9bd8d

Cleaned up the messages. You can turn the notifications of price changes off and those messages will only show gold or silver if they are more than 0. I have also removed the dependency on AceConsole because it doesn't allow changing the color of the addon name when I print messages.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Sat, 03 Jul 2010 10:05:53 -0700
parents 44e70a3fdb19
children c7b3585c73df
line wrap: on
line diff
--- a/Modules/Options.lua	Sat Jul 03 07:40:01 2010 -0700
+++ b/Modules/Options.lua	Sat Jul 03 10:05:53 2010 -0700
@@ -39,6 +39,14 @@
 					desc = "Toggles debug messages in chat",
 					get = "GetDebug",
 					set = "SetDebug",
+					order = 100,
+				},
+				item_cost = {
+					type = "toggle",
+					name = "Item Cost",
+					desc = "Shows a message every time an item's cost changes",
+					get = function() return ItemAuditor.db.profile.messages.cost_updates end,
+					set = function(info, value) ItemAuditor.db.profile.messages.cost_updates = value end,
 					order = 0,
 				},
 			},
@@ -136,15 +144,4 @@
 	InterfaceOptionsFrame_OpenToCategory(self.optionsFrame)
 end
 
-function addon:GetDebug(info)
-       return self.db.char.debug
-end
 
-function addon:SetDebug(info, input)
-       self.db.char.debug = input
-       local value = "off"
-       if input then
-               value = "on"
-       end
-       self:Print("Debugging is now: " .. value)
-end