Mercurial > wow > itemauditor
comparison Core.lua @ 55:234896be4087
Adding an option to direct ItemAuditor output to a different chat frame
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Thu, 22 Jul 2010 23:17:57 -0700 |
parents | a66f6fc57cfb |
children | bdf3aba93aa9 |
comparison
equal
deleted
inserted
replaced
54:52f691a2a3a4 | 55:234896be4087 |
---|---|
16 char = { | 16 char = { |
17 ah = 1, | 17 ah = 1, |
18 use_quick_auctions = false, | 18 use_quick_auctions = false, |
19 crafting_threshold = 1, | 19 crafting_threshold = 1, |
20 auction_threshold = 0.15, | 20 auction_threshold = 0.15, |
21 output_chat_frame = nil, | |
21 }, | 22 }, |
22 profile = { | 23 profile = { |
23 messages = { | 24 messages = { |
24 cost_updates = true, | 25 cost_updates = true, |
25 queue_skip = false, | 26 queue_skip = false, |
107 end | 108 end |
108 | 109 |
109 local printPrefix = "|cFFA3CEFFItemAuditor|r: " | 110 local printPrefix = "|cFFA3CEFFItemAuditor|r: " |
110 function addon:Print(message, ...) | 111 function addon:Print(message, ...) |
111 message = format(message, ...) | 112 message = format(message, ...) |
112 DEFAULT_CHAT_FRAME:AddMessage( printPrefix .. tostring(message)) | 113 self:GetSelectedChatWindow():AddMessage( printPrefix .. tostring(message)) |
113 self:Log(message) | |
114 end | 114 end |
115 | 115 |
116 function addon:GetCurrentInventory() | 116 function addon:GetCurrentInventory() |
117 local i = {} | 117 local i = {} |
118 local bagID | 118 local bagID |