local mod = get_mod("ShenheFriendly")
local filters = {}
local filter_count = 1
local filter
while true do
	filter = string.format("shenhe_filter_%s",filter_count)
	if mod:localize(filter) == string.format("<%s>",filter) then
		break
	end
	filters[filter_count] = {text = filter, value = filter_count}
	filter_count = filter_count + 1
end
--for i = 1, 8 do
--	filters[i] = {text = "shenhe_filter_"..tostring(i), value = mod:localize("shenhe_filter_"..tostring(i))}
--end
return {
	name = mod:localize("mod_name"),
	description = mod:localize("mod_description"),
	is_togglable = true,
	options = {
		widgets = {
			{
				setting_id = "shenhe_impact",
				tooltip = "shenhe_impact_tip",
				type = "checkbox",
				default_value = true,
			},
			{
				setting_id = "shenhe_impact_gib",
				tooltip = "shenhe_impact_gib_tip",
				type = "dropdown",
				default_value = "warp",
				options = {
					{text = "shenhe_gib_simple", value = "simple_warp"},
					{text = "shenhe_gib_full_warp", value = "warp"},
					{text = "shenhe_gib_full_bloodless", value = "bloodless"},
					{text = "shenhe_gib_disable", value = "disable"},
				},
			},
			{
				setting_id = "setting_chain_effect",
				type = "dropdown",
				default_value = "spark",
				options = {
					{text = "effect_default", value = "default"},
					{text = "effect_spark", value = "spark"},
					{text = "effect_force", value = "force"},
				},
			},
			{
				setting_id = "setting_bleed_effect",
				type = "dropdown",
				default_value = "chainlightning",
				options = {
					{text = "effect_bleed", value = "bleed"},
					{text = "effect_lightning", value = "chainlightning"},
					{text = "effect_force", value = "force"},
					{text = "effect_fire", value = "fire"},
					{text = "effect_warp_fire", value = "warp_fire"},
					{text = "effect_green_fire", value = "green_fire"},
					{text = "effect_eye", value = "red_eyes"},
					{text = "effect_nurgle_blessing", value = "nurgle_blessing"},
				},
			},
			{
				setting_id = "setting_bleed_effect_eyeless",
				type = "dropdown",
				tooltip = "setting_bleed_effect_eyeless_tooltip",
				default_value = "chainlightning",
				options = {
					{text = "effect_bleed", value = "bleed"},
					{text = "effect_lightning", value = "chainlightning"},
					{text = "effect_force", value = "force"},
					{text = "effect_fire", value = "fire"},
					{text = "effect_warp_fire", value = "warp_fire"},
					{text = "effect_green_fire", value = "green_fire"},
					{text = "effect_nurgle_blessing", value = "nurgle_blessing"},
				},
			},
			{
				setting_id = "setting_bleed_effect_eye_color_1",
				type = "dropdown",
				default_value = "red",
				options = {
					{text = "blue", value = "blue"},
					{text = "green", value = "green"},
					{text = "red", value = "red"},
					{text = "yellow", value = "yellow"},
					{text = "purple", value = "purple"},
					{text = "custom", value = "custom"},
				},
			},
			{
				setting_id = "setting_bleed_effect_eye_color_2",
				type = "dropdown",
				default_value = "red",
				options = {
					{text = "blue", value = "blue"},
					{text = "green", value = "green"},
					{text = "red", value = "red"},
					{text = "yellow", value = "yellow"},
					{text = "purple", value = "purple"},
					{text = "custom", value = "custom"},
				},
			},
			{
				setting_id = "setting_bleed_effect_eye_color_intensity",
				type = "numeric",
				default_value = 0.05,
				range = {0,1},
				decimals_number = 3,
			},
			{
				setting_id = "setting_bleed_effect_eye_stimmed_color_R",
				type = "numeric",
				default_value = 0.15,
				range = {0,1},
				decimals_number = 3,
			},
			{
				setting_id = "setting_bleed_effect_eye_stimmed_color_G",
				type = "numeric",
				default_value = 0,
				range = {0,1},
				decimals_number = 3,
			},
			{
				setting_id = "setting_bleed_effect_eye_stimmed_color_B",
				type = "numeric",
				default_value = 0.005,
				range = {0,1},
				decimals_number = 3,
			},
			{
				setting_id = "setting_bleed_effect_eye_color_1_R",
				type = "numeric",
				default_value = 0,
				range = {0,1},
				decimals_number = 3,
			},
			{
				setting_id = "setting_bleed_effect_eye_color_1_G",
				type = "numeric",
				default_value = 0,
				range = {0,1},
				decimals_number = 3,
			},
			{
				setting_id = "setting_bleed_effect_eye_color_1_B",
				type = "numeric",
				default_value = 0,
				range = {0,1},
				decimals_number = 3,
			},
			{
				setting_id = "setting_bleed_effect_eye_color_2_R",
				type = "numeric",
				default_value = 0,
				range = {0,1},
				decimals_number = 3,
			},
			{
				setting_id = "setting_bleed_effect_eye_color_2_G",
				type = "numeric",
				default_value = 0,
				range = {0,1},
				decimals_number = 3,
			},
			{
				setting_id = "setting_bleed_effect_eye_color_2_B",
				type = "numeric",
				default_value = 0,
				range = {0,1},
				decimals_number = 3,
			},
			{
				setting_id = "shenhe_others",
				type = "checkbox",
				default_value = true,
			},
			{
				setting_id = "shenhe_myself",
				type = "dropdown",
				tooltip = "shenhe_myself_tip",
				default_value = "disable",
				options = {
					{text = "shenhe_myself_disable", value = "disable"},
					{text = "shenhe_myself_shenhe", value = "shenhe"},
					{text = "shenhe_myself_custom", value = "custom"},
				},
			},
			{
				setting_id = "shenhe_streaming",
				type = "checkbox",
				tooltip = "shenhe_streaming_tip",
				default_value = true,
			},
			{
				setting_id = "shenhe_id_filtered",
				type = "dropdown",
				--tooltip = "setting_bleed_effect_eyeless_tooltip",
				default_value = 1,
				options = filters,
			},
		},
	},	
}


