#include "..\script_component.hpp"

//---------------------
//	Medical Overlay
//---------------------

[
	QGVAR(setting_enabled), // variable
	"CHECKBOX", // type
	["Enable 3D Triage Card State", "For players with medic perms, a colored dot will be shown over unconscious units within Xm indicating current ACE Triage State"], // title
	[QUOTE(SETTINGS_GROUP_NAME), QUOTE(COMPONENT_BEAUTIFIED)], // category
	true, // default value
	false, // isGlobal
	{
		params ["_value"];
		[
			QGVAR(setting_enabled),
			_value
		] call EFUNC(common,logSettingChanged);

		call FUNC(addGetEntitiesPFH);
		call FUNC(addDrawIconsPFH);
	}
] call CBA_fnc_addSetting;

[
	QGVAR(setting_drawRange), // variable
	"LIST", // type
	["Range To Draw Icons", "Determines range at which dots are visible"], // title
	[QUOTE(SETTINGS_GROUP_NAME), QUOTE(COMPONENT_BEAUTIFIED)], // category
	[[2, 4, 6, 8, 10], ["2", "4", "6", "8", "10"], 4], // option values, option labels, default index
	false, // isGlobal
	{
		params ["_value"];
		[
			QGVAR(setting_drawRange),
			_value
		] call EFUNC(common,logSettingChanged);
	}
] call CBA_fnc_addSetting;

[
	QGVAR(setting_colorMinimal), // variable
	"COLOR", // type
	["Minimal State Color", "Color of the dot for MINIMAL state"], // title
	[QUOTE(SETTINGS_GROUP_NAME), QUOTE(COMPONENT_BEAUTIFIED)], // category
	[0, 0.5, 0], // default value
	false, // isGlobal
	{
		params ["_value"];
		[
			QGVAR(setting_colorMinimal),
			str _value
		] call EFUNC(common,logSettingChanged);

		call FUNC(updateColors);
	}
] call CBA_fnc_addSetting;

[
	QGVAR(setting_colorDelayed), // variable
	"COLOR", // type
	["Delayed State Color", "Color of the dot for DELAYED state"], // title
	[QUOTE(SETTINGS_GROUP_NAME), QUOTE(COMPONENT_BEAUTIFIED)], // category
	[1, 0.84, 0], // default value
	false, // isGlobal
	{
		params ["_value"];
		[
			QGVAR(setting_colorDelayed),
			str _value
		] call EFUNC(common,logSettingChanged);

		call FUNC(updateColors);
	}
] call CBA_fnc_addSetting;

[
	QGVAR(setting_colorImmediate), // variable
	"COLOR", // type
	["Immediate State Color", "Color of the dot for IMMEDIATE state"], // title
	[QUOTE(SETTINGS_GROUP_NAME), QUOTE(COMPONENT_BEAUTIFIED)], // category
	[1, 0, 0], // default value
	false, // isGlobal
	{
		params ["_value"];
		[
			QGVAR(setting_colorImmediate),
			str _value
		] call EFUNC(common,logSettingChanged);

		call FUNC(updateColors);
	}
] call CBA_fnc_addSetting;

[
	QGVAR(setting_colorDeceased), // variable
	"COLOR", // type
	["Deceased State Color", "Color of the dot for DECEASED state"], // title
	[QUOTE(SETTINGS_GROUP_NAME), QUOTE(COMPONENT_BEAUTIFIED)], // category
	[0.15, 0.15, 0.15], // default value
	false, // isGlobal
	{
		params ["_value"];
		[
			QGVAR(setting_colorDeceased),
			str _value
		] call EFUNC(common,logSettingChanged);

		call FUNC(updateColors);
	}
] call CBA_fnc_addSetting;

[
	QGVAR(setting_colorNone), // variable
	"COLOR", // type
	["None State Color", "Color of the dot for NONE state, when a card is not set"], // title
	[QUOTE(SETTINGS_GROUP_NAME), QUOTE(COMPONENT_BEAUTIFIED)], // category
	[0.5, 0.5, 0.5], // default value
	false, // isGlobal
	{
		params ["_value"];
		[
			QGVAR(setting_colorNone),
			str _value
		] call EFUNC(common,logSettingChanged);

		call FUNC(updateColors);
	}
] call CBA_fnc_addSetting;


[
	LEVEL_INFO,
	QUOTE(COMPONENT),
	"CREATED SETTINGS",
	[]
] call EFUNC(common,log);