comparison 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
comparison
equal deleted inserted replaced
20:ff9a698caebc 21:d7f02c84994c
100 desc = "Don't create items that will make less than this amount of profit", 100 desc = "Don't create items that will make less than this amount of profit",
101 min = 0.0, 101 min = 0.0,
102 max = 1.0, 102 max = 1.0,
103 isPercent = true, 103 isPercent = true,
104 get = function() return ItemAuditor.db.char.auction_threshold end, 104 get = function() return ItemAuditor.db.char.auction_threshold end,
105 set = function(info, value) ItemAuditor.db.char.auction_threshold = value end, 105 set = function(info, value)
106 ItemAuditor.db.char.auction_threshold = value
107 ItemAuditor:RefreshQAGroups()
108 end,
106 disabled = 'IsQADisabled', 109 disabled = 'IsQADisabled',
107 order = 1, 110 order = 1,
108 }, 111 },
109 refresh_qa = { 112 refresh_qa = {
110 type = "execute", 113 type = "execute",
112 desc = "Resets all Quick Auctions thresholds", 115 desc = "Resets all Quick Auctions thresholds",
113 func = "RefreshQAGroups", 116 func = "RefreshQAGroups",
114 disabled = 'IsQADisabled', 117 disabled = 'IsQADisabled',
115 order = 9, 118 order = 9,
116 }, 119 },
117 120 }
118 queue_header = { 121 },
119 type = "header", 122 crafting_options = {
120 name = "Skillet Queue Options", 123 name = "Crafting with Skillet",
121 order = 10, 124 desc = "/ia queue",
122 }, 125 type = 'group',
123 126 disabled = function() return Skillet == nil end,
127 args = {
124 crafting_threshold = { 128 crafting_threshold = {
125 type = "select", 129 type = "select",
126 name = "Crafting Threshold", 130 name = "Crafting Threshold",
127 desc = "Don't create items that will make less than this amount of profit", 131 desc = "Don't create items that will make less than this amount of profit",
128 values = craftingThresholdsDisplay, 132 values = craftingThresholdsDisplay,
129 get = function() return ItemAuditor.db.char.crafting_threshold end, 133 get = function() return ItemAuditor.db.char.crafting_threshold end,
130 set = function(info, value) ItemAuditor.db.char.crafting_threshold = value end, 134 set = function(info, value) ItemAuditor.db.char.crafting_threshold = value end,
131 disabled = 'IsQADisabled',
132 order = 11, 135 order = 11,
133 }, 136 },
134 137 },
135 }
136 }, 138 },
137 options = { 139 options = {
138 type = "execute", 140 type = "execute",
139 name = "options", 141 name = "options",
140 desc = "Show Blizzard's options GUI", 142 desc = "Show Blizzard's options GUI",