comparison Modules/QuickAuctions.lua @ 67:b6c30a5156f9

Rearranged options to go with their related features.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Wed, 28 Jul 2010 07:35:14 -0700
parents e92a5adf75bf
children 2d65db19d3ce
comparison
equal deleted inserted replaced
66:b7bc0488f13b 67:b6c30a5156f9
289 Skillet:AddToQueue(queueCommand) 289 Skillet:AddToQueue(queueCommand)
290 else 290 else
291 Skillet.stitch:AddToQueue(skillIndex, toQueue) 291 Skillet.stitch:AddToQueue(skillIndex, toQueue)
292 end 292 end
293 end 293 end
294
295 ItemAuditor.Options.args.qa_options = {
296 name = "QA Options",
297 desc = "Control how ItemAuditor integrates with QuickAuctions",
298 type = 'group',
299 disabled = function() return not ItemAuditor:IsQACompatible() end,
300 args = {
301 toggle_qa = {
302 type = "toggle",
303 name = "Enable Quick Auctions",
304 desc = "This will enable or disable Quick Auctions integration",
305 get = "IsQAEnabled",
306 set = "SetQAEnabled",
307 order = 0,
308 },
309 auction_threshold = {
310 type = "range",
311 name = "Auction Threshold",
312 desc = "Don't create items that will make less than this amount of profit",
313 min = 0.0,
314 max = 1.0,
315 isPercent = true,
316 get = function() return ItemAuditor.db.char.auction_threshold end,
317 set = function(info, value)
318 ItemAuditor.db.char.auction_threshold = value
319 ItemAuditor:RefreshQAGroups()
320 end,
321 disabled = 'IsQADisabled',
322 order = 1,
323 },
324 refresh_qa = {
325 type = "execute",
326 name = "Refresh QA Thresholds",
327 desc = "Resets all Quick Auctions thresholds",
328 func = "RefreshQAGroups",
329 disabled = 'IsQADisabled',
330 order = 9,
331 },
332 }
333 }
334
335 ItemAuditor.Options.args.queue = {
336 type = "execute",
337 name = "queue",
338 desc = "Queue",
339 func = "Queue",
340 guiHidden = true,
341 }