class ScrollBar;
class RscControlsGroup
{
	class VScrollbar;
	class HScrollbar;
	class Controls;
};
class RscControlsGroupNoScrollbars;
class RscText;
class RscPicture;
class RscInGameUI
{
	class RscOptics_MBT_01_gunner;
	class BRAF_RscOptics_EE9_gunner: RscOptics_MBT_01_gunner
	{
		idd=300;
		controls[]=
		{
			"CA_Zeroing",
			"CA_IGUI_elements_group",
			"CA_APC_WFOV_mode_group",
			"CA_APC_NFOV_mode_group"
		};
		class CA_IGUI_elements_group: RscControlsGroup
		{
			idc=170;
			class VScrollbar: VScrollbar
			{
				width=0;
			};
			class HScrollbar: HScrollbar
			{
				height=0;
			};
			x="0*(0.01875*SafezoneH)+(SafezoneX+((SafezoneW-SafezoneH)/2))";
			y="0*(0.025*SafezoneH)+(SafezoneY)";
			w="53.5*(0.01875*SafezoneH)";
			h="40*(0.025*SafezoneH)";
			class controls
			{
				class CA_TurretIndicator: RscPicture
				{
					IDC=206;
					type=105;
					textSize="0.02*SafezoneH";
					style=0;
					color[]={1,1,1,1};
					x="5.25*(0.01875*SafezoneH)";
					y="3.5*(0.025*SafezoneH)";
					w="6*(0.01875*SafezoneH)";
					h="6*(0.025*SafezoneH)";
					imageHull="A3\Ui_f\data\IGUI\RscIngameUI\RscOptics\turretIndicatorHull.paa";
					imageTurret="A3\Ui_f\data\IGUI\RscIngameUI\RscOptics\turretIndicatorTurret.paa";
					imageObsTurret="#(rgb,8,8,3)color(0,0,0,0)";
					imageGun="#(rgb,8,8,3)color(0,0,0,0)";
				};
			};
		};
		class CA_APC_WFOV_mode_group: RscControlsGroupNoScrollbars
		{
			idc=163;
			x="0*(0.01875*SafezoneH)+(SafezoneX+((SafezoneW-SafezoneH)/2))";
			y="0*(0.025*SafezoneH)+(SafezoneY)";
			w="53.5*(0.01875*SafezoneH)";
			h="40*(0.025*SafezoneH)";
			class controls
			{
				class CA_FOVModeWFOV: RscText
				{
					shadow=0;
					font="EtelkaMonospacePro";
					colorText[]={1,1,1,1};
					sizeEx="0.032*SafezoneH";
					idc=1002;
					text="WFOV";
					x="40.4 * 		(0.01875 * SafezoneH)";
					y="29.2 * 		(0.025 * SafezoneH)";
					w="5 * 		(0.01875 * SafezoneH)";
					h="1.2 * 		(0.025 * SafezoneH)";
				};
			};
		};
		class CA_APC_NFOV_mode_group: RscControlsGroupNoScrollbars
		{
			idc=162;
			x="0*(0.01875*SafezoneH)+(SafezoneX+((SafezoneW-SafezoneH)/2))";
			y="0*(0.025*SafezoneH)+(SafezoneY)";
			w="53.5*(0.01875*SafezoneH)";
			h="40*(0.025*SafezoneH)";
			class controls
			{
				class CA_FOVModeNFOV: RscText
				{
					shadow=0;
					font="EtelkaMonospacePro";
					colorText[]={0.70899999,0.972,0.384,1};
					sizeEx="0.032*SafezoneH";
					idc=1007;
					text="NFOV";
					x="40.4*(0.01875*SafezoneH)";
					y="29.2*(0.025*SafezoneH)";
					w="5*(0.01875*SafezoneH)";
					h="1.2*(0.025*SafezoneH)";
				};
			};
		};
	};
	class BRAF_RscOptics_REMAX: RscOptics_MBT_01_gunner
	{
		idd=300;
		controls[]=
		{
			"CA_IGUI_elements_group"
		};
		class CA_IGUI_elements_group: RscControlsGroup
		{
			idc=170;
			class VScrollbar: VScrollbar
			{
				width=0;
			};
			class HScrollbar: HScrollbar
			{
				height=0;
			};
			x="0*(0.01875*SafezoneH)+(SafezoneX+((SafezoneW-SafezoneH)/2))";
			y="0*(0.025*SafezoneH)+(SafezoneY)";
			w="53.5*(0.01875*SafezoneH)";
			h="40*(0.025*SafezoneH)";
			class controls
			{
				class CA_Distance: RscText
				{
					idc=198;
					style=0;
					sizeEx="0.038*SafezoneH";
					colorText[]={1,1,1,1};
					//colorBackground[]={0,0,1,1};
					shadow=0;
					font="EtelkaMonospacePro";
					text="2456";
					align="center";
					x="2	*(0.01875*SafezoneH)";
					y="0	*(0.025*SafezoneH)";
					w="5	*(0.01875*SafezoneH)";
					h="1.5	*(0.025*SafezoneH)";
				};
				/*
				class AmmoCount: RscText
				{
					idc=IDC_AMMOCOUNT_VALUE;
					style=0;
					sizeEx="0.038*SafezoneH";
					colorText[]={1,1,1,1};
					//colorBackground[]={0,0,1,1};
					shadow=0;
					font="EtelkaMonospacePro";
					text="21";
					align="center";
					x="46	*(0.01875*SafezoneH)";
					y="0	*(0.025*SafezoneH)";
					w="5	*(0.01875*SafezoneH)";
					h="1.5	*(0.025*SafezoneH)";
				};
				*/
				class CA_TurretIndicator: RscPicture
				{
					IDC=206;
					type=105;
					textSize="0.02*SafezoneH";
					style=0;
					color[]={1,1,1,1};
					x="7*(0.01875*SafezoneH)";
					y="4.5*(0.025*SafezoneH)";
					w="10*(0.01875*SafezoneH)";
					h="10*(0.025*SafezoneH)";
					imageHull="A3\Ui_f\data\IGUI\RscIngameUI\RscOptics\turretIndicatorHull.paa";
					imageTurret="A3\Ui_f\data\IGUI\RscIngameUI\RscOptics\turretIndicatorTurret.paa";
					imageObsTurret="#(rgb,8,8,3)color(0,0,0,0)";
					imageGun="#(rgb,8,8,3)color(0,0,0,0)";
				};
				class CA_Heading: RscText
				{
					idc=156;
					style=0;
					sizeEx="0.038*SafezoneH";
					colorText[]={1,1,1,1};
					//colorBackground[]={0,0,1,1};
					shadow=0;
					font="EtelkaMonospacePro";
					text="023";
					align="center";
					x="0.25	*(0.01875*SafezoneH)";
					y="2.5	*(0.025*SafezoneH)";
					w="6	*(0.01875*SafezoneH)";
					h="1.5	*(0.025*SafezoneH)";
				};
			};
		};
	};
};	
class BRAF_Cascavel_Gunner_Optics: Optics_Armored
{
	class Wide: RCWSOptics
	{
		initFov="(36 / 120)";
		minFov="(36 / 120)";
		maxFov="(36 / 120)";
		visionMode[]={"Normal"};
		thermalMode[]={};
		gunnerOpticsModel="\braf\braf_armored\BRAF_Optics_Armored\Cascavel\BRAF_optics_gunner_w.p3d";
		gunnerOpticsEffect[]={};
	};
	class Medium: Wide
	{
		gunnerOpticsModel="\braf\braf_armored\BRAF_Optics_Armored\Cascavel\BRAF_optics_gunner_m.p3d";
		initFov="(150 * 0.05625 / 120)";
		minFov="(150 * 0.05625 / 120)";
		maxFov="(150 * 0.05625 / 120)";
	};
	//class Narrow: Wide
	//{
	//	gunnerOpticsModel="\braf\braf_armored\BRAF_Optics_Armored\BRAF_optics_gunner_n.p3d";
	//	initFov="(60 * 0.05625 / 120)";
	//	minFov="(60 * 0.05625 / 120)";
	//	maxFov="(60 * 0.05625 / 120)";
	//};
};
class BRAF_Cascavel_Periscope_Optics: BRAF_Cascavel_Gunner_Optics
{
	class Wide: Wide
	{
		gunnerOpticsModel="\braf\braf_armored\BRAF_Optics_Armored\Cascavel\BRAF_optics_periscope.p3d";
		visionMode[]={"Normal"};
		thermalMode[]={};
	};
	class Medium: Wide
	{
		gunnerOpticsModel="\braf\braf_armored\BRAF_Optics_Armored\Cascavel\BRAF_optics_periscope.p3d";
	};
};	
class BRAF_REMAX_Gunner_Optics: Optics_Armored
{
	class Wide: RCWSOptics
	{
		initFov=0.4;
		minFov=0.4;
		maxFov=0.4;
		visionMode[]=
		{
			"Normal",
			"TI"
		};
		thermalMode[]={0};
		thermalNoise[]=
		{
			0.5,		//intensity,
			1.25,		//sharpness,
			2.5,		//grainSize,
			0.75,		//intensityX0,
			1,			//intensityX1,
			0,			//monochromatic,
			0,			//static,
			0.95		//blurCoef
		};
		gunnerOpticsModel="\braf\braf_armored\BRAF_Optics_Armored\REMAX\BRAF_REMAX_gunner_w.p3d";
		gunnerOpticsEffect[]={};
	};
	class Medium: Wide
	{
		gunnerOpticsModel="\braf\braf_armored\BRAF_Optics_Armored\REMAX\BRAF_REMAX_gunner_m.p3d";
		initFov=0.07;
		minFov=0.07;
		maxFov=0.07;
	};
	class Narrow: Wide
	{
		gunnerOpticsModel="\braf\braf_armored\BRAF_Optics_Armored\REMAX\BRAF_REMAX_gunner_n.p3d";
		initFov=0.014;
		minFov=0.014;
		maxFov=0.014;
	};
};