Mercurial > wow > itemauditor
comparison Modules/Debug.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 | bbba2fae0f69 |
children | 66b7c3f5937e |
comparison
equal
deleted
inserted
replaced
15:44e70a3fdb19 | 16:56de19d9bd8d |
---|---|
3 | 3 |
4 local utils = addonTable.utils | 4 local utils = addonTable.utils |
5 | 5 |
6 | 6 |
7 function addon:Debug(msg) | 7 function addon:Debug(msg) |
8 if self.db.char.debug then | 8 if self.db.profile.messages.debug then |
9 self:Print(msg) | 9 self:Print(msg) |
10 end | 10 end |
11 end | |
12 | |
13 function addon:GetDebug(info) | |
14 return self.db.profile.messages.debug | |
15 end | |
16 | |
17 function addon:SetDebug(info, input) | |
18 self.db.profile.messages.debug = input | |
19 local value = "off" | |
20 if input then | |
21 value = "on" | |
22 end | |
23 self:Print("Debugging is now: " .. value) | |
11 end | 24 end |
12 | 25 |
13 local function DebugEventRegistration() | 26 local function DebugEventRegistration() |
14 addon.OriginalRegisterEvent = addon.RegisterEvent | 27 addon.OriginalRegisterEvent = addon.RegisterEvent |
15 addon.OriginalUnregisterEvent = addon.UnregisterEvent | 28 addon.OriginalUnregisterEvent = addon.UnregisterEvent |