Mercurial > wow > itemauditor
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 15:44e70a3fdb19 | 16:56de19d9bd8d |
|---|---|
| 37 type = "toggle", | 37 type = "toggle", |
| 38 name = "Debug", | 38 name = "Debug", |
| 39 desc = "Toggles debug messages in chat", | 39 desc = "Toggles debug messages in chat", |
| 40 get = "GetDebug", | 40 get = "GetDebug", |
| 41 set = "SetDebug", | 41 set = "SetDebug", |
| 42 order = 100, | |
| 43 }, | |
| 44 item_cost = { | |
| 45 type = "toggle", | |
| 46 name = "Item Cost", | |
| 47 desc = "Shows a message every time an item's cost changes", | |
| 48 get = function() return ItemAuditor.db.profile.messages.cost_updates end, | |
| 49 set = function(info, value) ItemAuditor.db.profile.messages.cost_updates = value end, | |
| 42 order = 0, | 50 order = 0, |
| 43 }, | 51 }, |
| 44 }, | 52 }, |
| 45 }, | 53 }, |
| 46 | 54 |
| 134 | 142 |
| 135 function addon:ShowOptionsGUI() | 143 function addon:ShowOptionsGUI() |
| 136 InterfaceOptionsFrame_OpenToCategory(self.optionsFrame) | 144 InterfaceOptionsFrame_OpenToCategory(self.optionsFrame) |
| 137 end | 145 end |
| 138 | 146 |
| 139 function addon:GetDebug(info) | |
| 140 return self.db.char.debug | |
| 141 end | |
| 142 | 147 |
| 143 function addon:SetDebug(info, input) | |
| 144 self.db.char.debug = input | |
| 145 local value = "off" | |
| 146 if input then | |
| 147 value = "on" | |
| 148 end | |
| 149 self:Print("Debugging is now: " .. value) | |
| 150 end |
