view CraftingAddons/AdvancedTradeSkillWindow.lua @ 30:8177b5bcb883

Added tag ?NYI? to the ?Alert when below minimum? option. Added ?Don't queue when below threshold? option. This isn?t functional yet, just a place holder to indicate it will be implemented at a later time. Added initial functionality for ?virtual? groups (feel free to suggest a better name :P), with these groups you can override the defaults for multiple groups. By default, settings will be retrieved as CURRENT_GROUP -> DEFAULTS, with this it can become CURRENT_GROUP -> VIRTUAL_GROUP -> DEFAULTS. This will come in handy when managing a lot of groups. Full functionality is not yet implemented, it is just a placeholder to indicate it will be added. Reduced the softmax for the restock target option from 1000 to 100 to make the slider actually useful. You can still enter a value of upto 100.000 in the edit box below.
author Zerotorescue
date Fri, 29 Oct 2010 13:43:41 +0200
parents 5006cb0e97c6
children
line wrap: on
line source
do
	
	local function Queue(tradeSkillIndex, amount)
		local link = GetTradeSkillItemLink(tradeSkillIndex);
		local itemName = link:match("%[([^%[%]]*)%]");
		
		return ATSW_AddJob(itemName, amount);
	end
	
	local function IsEnabled()
		return (ATSW_AddJob);
	end
	
	IMRegisterCraftingAddon("AdvancedTradeSkillWindow", Queue, IsEnabled);
	
end