Mercurial > wow > itemauditor
diff Core.lua @ 101:53147a647e28
Converted the crafting threshold option to allow input instead of a drop down.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Thu, 19 Aug 2010 23:26:54 -0700 |
parents | e6292f1a0cf3 |
children | 1f410255ebd8 |
line wrap: on
line diff
--- a/Core.lua Thu Aug 19 23:22:53 2010 -0700 +++ b/Core.lua Thu Aug 19 23:26:54 2010 -0700 @@ -46,7 +46,7 @@ char = { ah = 1, use_quick_auctions = false, - crafting_threshold = 1, + profitable_threshold = 10000, auction_threshold = 0.15, qa_extra = 0, output_chat_frame = nil, @@ -85,6 +85,19 @@ LibStub("AceConsole-3.0"):RegisterChatCommand('rl', ReloadUI) + if self.db.char.crafting_threshold then + local threshold = self.db.char.crafting_threshold + if threshold == 1 then + self.db.char.profitable_threshold = 5000 + elseif threshold == 2 then + self.db.char.profitable_threshold = 10000 + elseif threshold == 3 then + self.db.char.profitable_threshold = 50000 + end + + self.db.char.crafting_threshold = nil + end + --@debug@ -- ItemAuditor_DebugFrame:Show() -- self:CreateFrame('tab_crafting')