diff Modules/Options.lua @ 21:d7f02c84994c

Changed QA to be an option part of /ia queue. If QA is there, IA will queue enough of an item to be created to have 1.25x QA auctino count x QA stack size (rounded up) items. If it is not there, it will create 1 on every profitable item. This commit also adds support for Auctioneer.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Tue, 06 Jul 2010 23:48:54 -0700
parents ff9a698caebc
children 66b7c3f5937e
line wrap: on
line diff
--- a/Modules/Options.lua	Sun Jul 04 09:33:25 2010 -0700
+++ b/Modules/Options.lua	Tue Jul 06 23:48:54 2010 -0700
@@ -102,7 +102,10 @@
 					max = 1.0,
 					isPercent = true,
 					get = function() return ItemAuditor.db.char.auction_threshold end,
-					set = function(info, value) ItemAuditor.db.char.auction_threshold = value end,
+					set = function(info, value)
+						ItemAuditor.db.char.auction_threshold = value
+						ItemAuditor:RefreshQAGroups()
+					end,
 					disabled = 'IsQADisabled',
 					order = 1,
 				},
@@ -114,13 +117,14 @@
 					disabled = 'IsQADisabled',
 					order = 9,
 				},
-				
-				queue_header = {
-					type = "header",
-					name = "Skillet Queue Options",
-					order = 10,
-				},
-				
+			}
+		},
+		crafting_options = {
+			name = "Crafting with Skillet",
+			desc = "/ia queue",
+			type = 'group',
+			disabled = function() return Skillet == nil end,
+			args = {
 				crafting_threshold = {
 					type = "select",
 					name = "Crafting Threshold",
@@ -128,11 +132,9 @@
 					values = craftingThresholdsDisplay,
 					get = function() return ItemAuditor.db.char.crafting_threshold end,
 					set = function(info, value) ItemAuditor.db.char.crafting_threshold = value end,
-					disabled = 'IsQADisabled',
 					order = 11,
 				},
-				
-			}
+			},
 		},
 		options = {
 			type = "execute",