Mercurial > wow > itemauditor
comparison Modules/QuickAuctions.lua @ 70:3930518cb8d9
Added a public API so other addon developers can register themselves as a queue destination and added a UI so users can select that destination.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Wed, 28 Jul 2010 22:19:38 -0700 |
parents | 2d65db19d3ce |
children | aaf9a155995b |
comparison
equal
deleted
inserted
replaced
69:4ae431c98059 | 70:3930518cb8d9 |
---|---|
117 end | 117 end |
118 Crafting.RegisterCraftingDecider('IA QuickAuctions', isProfitable) | 118 Crafting.RegisterCraftingDecider('IA QuickAuctions', isProfitable) |
119 | 119 |
120 | 120 |
121 function ItemAuditor:Queue() | 121 function ItemAuditor:Queue() |
122 local dest, name = Crafting.GetQueueDestination() | |
122 local function Export(data) | 123 local function Export(data) |
123 ItemAuditor:Print(format("Adding %s x%s to skillet queue. Profit: %s", | 124 ItemAuditor:Print(format("Adding %s x%s to %s queue. Profit: %s", |
124 data.link, | 125 data.link, |
125 data.queue, | 126 data.queue, |
127 name, | |
126 Utils.FormatMoney(data.profit) | 128 Utils.FormatMoney(data.profit) |
127 )) | 129 )) |
128 Crafting.ExportToSkillet(data) | 130 dest(data) |
129 end | 131 end |
130 ItemAuditor:UpdateCraftingTable() | 132 ItemAuditor:UpdateCraftingTable() |
131 Crafting.Export(Export) | 133 Crafting.Export(Export) |
132 end | 134 end |
133 | 135 |