Mercurial > wow > itemauditor
view Modules/Debug.lua @ 18:c7b3585c73df
Added the missing QuickAuctions module. I've also added integration with Skillet and LilSparkysWorkshop. IA and queue any item set up in QuickAuctions where the reagent cost is less than the current price of the item. This is based on KevTool Queue.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Sat, 03 Jul 2010 14:53:27 -0700 |
parents | 56de19d9bd8d |
children | 66b7c3f5937e |
line wrap: on
line source
local addonName, addonTable = ...; local addon = _G[addonName] local utils = addonTable.utils function addon:Debug(msg) if self.db.profile.messages.debug then self:Print(msg) end end function addon:GetDebug(info) return self.db.profile.messages.debug end function addon:SetDebug(info, input) self.db.profile.messages.debug = input local value = "off" if input then value = "on" end self:Print("Debugging is now: " .. value) end local function DebugEventRegistration() addon.OriginalRegisterEvent = addon.RegisterEvent addon.OriginalUnregisterEvent = addon.UnregisterEvent function addon:RegisterEvent(event, callback, arg) self:Debug("RegisterEvent " .. event ) if arg ~= nil then addon:OriginalRegisterEvent(event, callback, arg) elseif callback ~= nil then addon:OriginalRegisterEvent(event, callback) else addon:OriginalRegisterEvent(event) end end function addon:UnregisterEvent(event) self:Debug("UnregisterEvent " .. event ) addon:OriginalUnregisterEvent (event) end end -- DebugEventRegistration()