local mod = get_mod("ColorCodedHealthbars")

local widgets = {
	{
		setting_id = "general_settings",
		type = "group",
		sub_widgets = {
			{
				setting_id = "show_startup_messages",
				type = "checkbox",
				default_value = false,
				tooltip = "Show mod loading and integration messages in chat",
			},
		},
	},
	{
		setting_id = "feature_toggles",
		type = "group",
		sub_widgets = {
			{
				setting_id = "show_bar",
				type = "checkbox",
				default_value = true,
			},
			{
				setting_id = "show_damage_numbers",
				type = "checkbox",
				default_value = true,
			},
			{
				setting_id = "show_dps",
				type = "checkbox",
				default_value = false,
			},
			{
				setting_id = "show_armour_type",
				type = "checkbox",
				default_value = true,
			},
			{
				setting_id = "bleed",
				type = "checkbox",
				default_value = false,
			},
			{
				setting_id = "burn",
				type = "checkbox",
				default_value = false,
			},
		},
	},
	{
		setting_id = "breed_type_toggles",
		type = "group",
		sub_widgets = {
			{
				setting_id = "show_horde",
				type = "checkbox",
				default_value = false,
				tooltip = "Show healthbars for all horde enemies (Gray color)",
			},
			{
				setting_id = "show_roamer",
				type = "checkbox",
				default_value = false,
				tooltip = "Show healthbars for all roamer enemies (Light Gray color)",
			},
			{
				setting_id = "show_elite",
				type = "checkbox",
				default_value = false,
				tooltip = "Show healthbars for all elite enemies (Orange colors)",
			},
			{
				setting_id = "show_special",
				type = "checkbox",
				default_value = false,
				tooltip = "Show healthbars for all special enemies (Magenta colors)",
			},
			{
				setting_id = "show_monster",
				type = "checkbox",
				default_value = false,
				tooltip = "Show healthbars for all monster enemies (Red color)",
			},
			{
				setting_id = "show_captain",
				type = "checkbox",
				default_value = false,
				tooltip = "Show healthbars for all captain enemies (Purple color)",
			},
		},
	},
	{
		setting_id = "basic_color_settings",
		type = "group",
		sub_widgets = {
			{
				setting_id = "horde_color_r",
				type = "numeric",
				default_value = 150,
				range = {0, 255},
				tooltip = "Red component for horde enemy healthbars",
			},
			{
				setting_id = "horde_color_g",
				type = "numeric",
				default_value = 150,
				range = {0, 255},
				tooltip = "Green component for horde enemy healthbars",
			},
			{
				setting_id = "horde_color_b",
				type = "numeric",
				default_value = 150,
				range = {0, 255},
				tooltip = "Blue component for horde enemy healthbars",
			},
			{
				setting_id = "roamer_color_r",
				type = "numeric",
				default_value = 180,
				range = {0, 255},
				tooltip = "Red component for roamer enemy healthbars",
			},
			{
				setting_id = "roamer_color_g",
				type = "numeric",
				default_value = 180,
				range = {0, 255},
				tooltip = "Green component for roamer enemy healthbars",
			},
			{
				setting_id = "roamer_color_b",
				type = "numeric",
				default_value = 180,
				range = {0, 255},
				tooltip = "Blue component for roamer enemy healthbars",
			},
			{
				setting_id = "monster_color_r",
				type = "numeric",
				default_value = 255,
				range = {0, 255},
				tooltip = "Red component for monster enemy healthbars",
			},
			{
				setting_id = "monster_color_g",
				type = "numeric",
				default_value = 0,
				range = {0, 255},
				tooltip = "Green component for monster enemy healthbars",
			},
			{
				setting_id = "monster_color_b",
				type = "numeric",
				default_value = 0,
				range = {0, 255},
				tooltip = "Blue component for monster enemy healthbars",
			},
			{
				setting_id = "captain_color_r",
				type = "numeric",
				default_value = 128,
				range = {0, 255},
				tooltip = "Red component for captain enemy healthbars",
			},
			{
				setting_id = "captain_color_g",
				type = "numeric",
				default_value = 0,
				range = {0, 255},
				tooltip = "Green component for captain enemy healthbars",
			},
			{
				setting_id = "captain_color_b",
				type = "numeric",
				default_value = 128,
				range = {0, 255},
				tooltip = "Blue component for captain enemy healthbars",
			},
		},
	},
	{
		setting_id = "elite_subcategory_colors",
		type = "group",
		sub_widgets = {
			{
				setting_id = "elite_melee_color_r",
				type = "numeric",
				default_value = 255,
				range = {0, 255},
				tooltip = "Red component for melee elite enemies (Ragers, Crushers, etc.)",
			},
			{
				setting_id = "elite_melee_color_g",
				type = "numeric",
				default_value = 165,
				range = {0, 255},
				tooltip = "Green component for melee elite enemies",
			},
			{
				setting_id = "elite_melee_color_b",
				type = "numeric",
				default_value = 0,
				range = {0, 255},
				tooltip = "Blue component for melee elite enemies",
			},
			{
				setting_id = "elite_ranged_color_r",
				type = "numeric",
				default_value = 255,
				range = {0, 255},
				tooltip = "Red component for ranged elite enemies (Gunners, Shocktroopers, etc.)",
			},
			{
				setting_id = "elite_ranged_color_g",
				type = "numeric",
				default_value = 100,
				range = {0, 255},
				tooltip = "Green component for ranged elite enemies",
			},
			{
				setting_id = "elite_ranged_color_b",
				type = "numeric",
				default_value = 0,
				range = {0, 255},
				tooltip = "Blue component for ranged elite enemies",
			},
		},
	},
	{
		setting_id = "special_subcategory_colors",
		type = "group",
		sub_widgets = {
			{
				setting_id = "special_sniper_color_r",
				type = "numeric",
				default_value = 255,
				range = {0, 255},
				tooltip = "Red component for sniper specials (Snipers)",
			},
			{
				setting_id = "special_sniper_color_g",
				type = "numeric",
				default_value = 0,
				range = {0, 255},
				tooltip = "Green component for sniper specials",
			},
			{
				setting_id = "special_sniper_color_b",
				type = "numeric",
				default_value = 200,
				range = {0, 255},
				tooltip = "Blue component for sniper specials",
			},
			{
				setting_id = "special_disabler_color_r",
				type = "numeric",
				default_value = 200,
				range = {0, 255},
				tooltip = "Red component for disabler specials (Mutants, Hounds, Flamers, etc.)",
			},
			{
				setting_id = "special_disabler_color_g",
				type = "numeric",
				default_value = 0,
				range = {0, 255},
				tooltip = "Green component for disabler specials",
			},
			{
				setting_id = "special_disabler_color_b",
				type = "numeric",
				default_value = 255,
				range = {0, 255},
				tooltip = "Blue component for disabler specials",
			},
		},
	},
}

return {
	name = mod:localize("mod_name"),
	description = mod:localize("mod_description"),
	is_togglable = true,
	options = {
		widgets = widgets,
	},
}