name = "[DS] Too many Item"
forumthread = "" --http://forums.kleientertainment.com/files/file/806-too-many-items/
description = " Codes by C.J.B.\n Items and bug fix by GaRAnTuLA.\n DST version by Skull.\n DS version by Soo.\n Allows you to spawn any item you want. \n Press (T) to open spawn menu.\n Left Click to spawn 1 item.\n Right Click to spawn 10 items.\n Toggle Button and spawn num are Configurable"
author = "CJB - GaRAnTuLA - Skull - Soo"
version = "1.1"
api_version = 6
dont_starve_compatible = true
reign_of_giants_compatible = true
shipwrecked_compatible = true

icon_atlas = "tmi.xml"
icon = "tmi.tex"

local alpha = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}
local KEY_A = 97
local keyslist = {}
for i = 1,#alpha do keyslist[i] = {description = alpha[i],data = i + KEY_A - 1} end

configuration_options =
{
	{
		name = "KEYBOARD_TOGGLE_KEY",
		label = "Toggle Button",
		hover = "The key you need to show the TooManyItems screen.",
		options = keyslist,
		default = 116, --T
	},
	{
		name = "TMI_L_CLICK_NUM",
		label = "Click",
		hover = "The num of item you get from TooManyItems.",
		options =
		{
			{description = "1", data = 1},
			{description = "2", data = 2},
			{description = "3", data = 3},
			{description = "4", data = 4},
			{description = "5", data = 5},
		},
		default = 1,
	},
	{
		name = "TMI_R_CLICK_NUM",
		label = "Right-click",
		hover = "The num of item you get from TooManyItems.",
		options =
		{
			{description = "10", data = 10},
			{description = "15", data = 15},
			{description = "20", data = 20},
			{description = "25", data = 25},
			{description = "30", data = 30},
		},
		default = 10,
	},
}