#define FontS "tahomaB24"
#define FontM "tahomaB36"
#define FontHTML "courierNewB64"
#define FontHTMLBold "courierNewB64"
#define FontMAP "courierNewB64"
#define FontMAIN "SteelfishB64"
#define FontMAINCZ "SteelfishB64CE"
#define FontTITLE "SteelfishB128"
#define FontTITLEHalf "SteelfishB64"
#define FontBOOK "garamond64"
#define FontNOTES "AudreysHandI48"


// Control types
#define CT_STATIC	0
#define CT_HTML		9

#define CT_OBJECT		80
//	#define CT_OBJECT_CONTAINER	82

//	#define CT_3DSTATIC		20
//	#define CT_3DHTML		23

// Static styles
#define ST_LEFT			0
#define ST_RIGHT		1
#define ST_CENTER		2
#define ST_UP			3
#define ST_DOWN			4
#define ST_VCENTER		5

#define ST_SINGLE		0
#define ST_MULTI		16
#define ST_PICTURE		48
#define ST_FRAME		64

#define ST_HUD_BACKGROUND	128
#define ST_TILE_PICTURE		144
#define ST_WITH_RECT		160
#define ST_LINE			176

#define ST_SHADOW		256
#define ST_NO_RECT		512


onLoadIntro=;


class CfgSounds
{
	sounds[] = {fxbum, zasah};

	class DX01v01
	{
		name = "DX01v01";
		sound[] = {"DX01v01.ogg", db-10, 1.0};
		titles[] = 
		{
			0, $STRD_DX01v01
		};
	};

	class DX01v02
	{
		name = "DX01v02";
		sound[] = {"DX01v02.ogg", db-10, 1.0};
		titles[] = 
		{
			0, $STRD_DX01v02
		};
	};



	class DX01v03
	{
		name = "DX01v03";
		sound[] = {"DX01v03.ogg", db-10, 1.0};
		titles[] = 
		{
			0, $STRD_DX01v03
		};
	};



	class DX01v04
	{
		name = "DX01v04";
		sound[] = {"DX01v04.ogg", db-10, 1.0};
		titles[] = 
		{
			0, $STRD_DX01v04
		};
	};



	class DX01v05
	{
		name = "DX01v05";
		sound[] = {"DX01v05.ogg", db-10, 1.0};
		forceTitles=true;
		titles[] = 
		{
			0, $STRD_DX01v05
		};
	};



	class DX01v06
	{
		name = "DX01v06";
		sound[] = {"DX01v06.ogg", db+10, 1.0};
		forceTitles=true;
		titles[] = 
		{
			0, $STRD_DX01v06
		};
	};


	class DX01v07
	{
		name = "DX01v07";
		sound[] = {"DX01v07.ogg", db-10, 1.0};
		forceTitles=true;
		titles[] = 
		{
			0, $STRD_DX01v07
		};
	};

	class DX01v08
	{
		name = "DX01v08";
		sound[] = {"DX01v08.ogg", db+40, 1.0};
		forceTitles=true;
		titles[] = 
		{
			0, $STRD_DX01v08
		};
	};


	class DX01v09
	{
		name = "DX01v09";
		sound[] = {"DX01v09.ogg", db+40, 1.0};
		forceTitles=true;
		titles[] = 
		{
			0, $STRD_DX01v09
		};
	};



	class DX01v10
	{
		name = "DX01v10";
		sound[] = {"DX01v10.ogg", db+40, 1.0};
		forceTitles=true;
		titles[] = 
		{
			0, $STRD_DX01v10
		};
	};



	class DX01v11
	{
		name = "DX01v11";
		sound[] = {"DX01v11.ogg", db+40, 1.0};
		forceTitles=true;
		titles[] = 
		{
			0, $STRD_DX01v11
		};
	};



	class DX01v12
	{
		name = "DX01v12";
		sound[] = {"DX01v12.ogg", db+40, 1.0};
		forceTitles=true;
		titles[] = 
		{
			0, $STRD_DX01v12
		};
	};



	class DX01v13
	{
		name = "DX01v13";
		sound[] = {"DX01v13.ogg", db+40, 1.0};
		forceTitles=true;
		titles[] = 
		{
			0, $STRD_DX01v13
		};
	};



	class DX01v14
	{
		name = "DX01v14";
		sound[] = {"DX01v14.ogg", db+40, 1.0};
		forceTitles=true;
		titles[] = 
		{
			0, $STRD_DX01v14
		};
	};



	class DX01v15
	{
		name = "DX01v15";
		sound[] = {"DX01v15.ogg", db+60, 1.0};
		forceTitles=true;
		titles[] = 
		{
			0, $STRD_DX01v15
		};
	};



	class DX01v16
	{
		name = "DX01v16";
		sound[] = {"DX01v16.ogg", db+40, 1.0};
		forceTitles=true;
		titles[] = 
		{
			0, $STRD_DX01v16
		};
	};



	class DX01v17
	{
		name = "DX01v17";
		sound[] = {"DX01v17.ogg", db-10, 1.0};
		titles[] = 
		{
			0, $STRD_DX01v17
		};
	};
	
	class DX01v19
	{
		name = "DX01v19";
		sound[] = {"DX01v19.ogg", db-10, 1.0};
		titles[] = 
		{
			0, $STRD_DX01v19
		};
	};
	
	class DX01v20
	{
		name = "DX01v20";
		sound[] = {"DX01v20.ogg", db+40, 1.0};
		titlesfont = "tahomaB24";
		titlessize = 0.025;
		titles[] = 
		{
			0, $STRD_DX01v20
		};
	};
	class fxbum
	{
		name = "fxbum";
		sound[] = {"fxbum.ogg", db+10, 1.0};
		titles[] = {};
	};

	class zasah
	{
		name = "zasah";
		sound[] = {"zasah.ogg", db-10, 1.0};
		titles[] = {};
	};

};

class CfgRadio
{
	sounds[] = { };

	class D01r01
	{
		name = "D01r01";
		sound[] = {"D01r01.ogg", db-10, 1.0};
		title = $STRD_D01r01;
	};
};
class CfgSFX
{
	sounds[] = {};
};






// -----------------------------
// Predefined control templates
// -----------------------------

// let this be as it is
// these are the default values of the parametres

class RscPicture
{
	type = CT_STATIC;
	idc = -1;
	style = ST_PICTURE;
	colorBackground[] = {0, 0, 0, 0};
	colorText[] = {1, 1, 1, 1};
	font = FontS;
	size = 0;
};

class RscText
{
	type = CT_STATIC;
	idc = -1;
	style = ST_LEFT;
	h = 0.04; 
	colorBackground[] = {0, 0, 0, 0};
	colorText[] = {1, 1, 1, 1};
	font = FontS;
	size = 1;
};

class RscBackground
{
	type = CT_STATIC;
	idc = -1;
	style = ST_LEFT;
	colorBackground[] = {0, 1, 0, 1};
	colorText[] = {1, 1, 1, 1};
	font = FontS;
	size = 0;
	text = "";
};

class RscObject
{
	type = CT_OBJECT;
	scale = 1.0;
	direction[] = {0, 0, 1};
	up[] = {0, 1, 0};
};

class RscHTML
{
	type = CT_HTML;
	idc = -1;
	style = 0;
	colorBackground[] = {1, 1, 1, 1};
	colorText[] = {0, 0, 0, 1};
	colorBold[] = {0, 0, 0.2, 1};
	colorLink[] = {0.4, 0.4, 0.8, 1};
	colorLinkActive[] = {0.8, 0.35, 0.48, 1};

	// styles
	class H1
	{
		font = FontHTML;
		fontBold = FontHTMLBold;
		size = 1.0;
	};
	class H2
	{
		font = FontHTML;
		fontBold = FontHTMLBold;
		size = 0.7;
	};
	class H3
	{
		font = FontHTML;
		fontBold = FontHTMLBold;
		size = 0.5;
	};
	class H4
	{
		font = FontHTML;
		fontBold = FontHTMLBold;
		size = 0.4;
	};
	class H5
	{
		font = FontBOOK;
		fontBold = FontBOOK;
		size = 0.6;
	};
	class H6
	{
		font = FontNOTES;
		fontBold = FontNOTES;
		size = 0.7;
	};
	class P
	{
		font = FontHTML;
		fontBold = FontHTML;
		size = 0.47;
	};
};


// -----------------------------
// Your own classes will be here
// -----------------------------

class RscTitles
{
	
	titles[] = 
	{
		Dragunov,
		BISLeader
	};

	class Dragunov
	{
		idd=-1;		// ID ... always -1
		movingEnable = false;	// always false
		duration=100;		// time of the effect (in seconds)
		name = "binocular";

		// max. three arrays - controls, controlsBackground (optional), objects (optional)
		// for now - we will only use "controls"

		objects[]= {binocular};
		
		class binocular : RscObject
		{
			model= "\O\Guns\opt_snip_noflash.p3d";
			idc=-1;
			position[] = {0,0,0.063};
			direction[] = {sin 0, sin 180 * cos 0, cos 180 * cos 0};
			up[] = {0, cos 180, -sin 180};
		};
	};
	
	
	class BISleader
	{
		name = "BISleader";
		duration = 6;
		idd = -1;
		movingEnable = false;
		
		controls[]=
		{
			work1,
			name1
		};


		class work1 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_CREDITS01;
			x = 0.05; y = 0.45; w = 0.95; h = 0.3;
			colorText[] = {0.75, 0.75, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 0.5 * 0.05;
			size = 0.8;
		};
		class name1 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_CREDITSN01;
			x = 0.05; y = 0.50; w = 0.95; h = 0.3;
			colorText[] = {1.0, 1.0, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 1.5 * 0.1;
			size = 1.2;
		};
	};
	class BISViktor
	{
		name = "BISViktor";
		duration = 6;
		idd = -1;
		movingEnable = false;
		
		controls[]=
		{
			work1,
			name1
		};
		class work1 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_CREDITS04;
			x = 0.05; y = 0.45; w = 0.95; h = 0.3;
			colorText[] = {0.75, 0.75, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 0.5 * 0.05;
			size = 0.8;
		};
		class name1 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_DN_CREDITSN01;
			x = 0.05; y = 0.50; w = 0.95; h = 0.07;
			colorText[] = {1.0, 1.0, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 1.5 * 0.1;
			size = 1.2;
		};
	};

	class BISProgram
	{
		name = "BISProgram";
		duration = 8;
		idd = -1;
		movingEnable = false;
		
		controls[]=
		{
			work1,
			name1
		};
		class work1 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_CREDITS02;
			x = 0.05; y = 0.4; w = 0.95; h = 0.3;
			colorText[] = {0.75, 0.75, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 0.5 * 0.05;
			size = 0.8;
		};
		class name1 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_DN_CREDITSN02;
			x = 0.05; y = 0.45; w = 0.95; h = 0.3;
			colorText[] = {1.0, 1.0, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 1.5 * 0.1;
			size = 1.2;
		};
	};
	

	class BISDesign
	{
		name = "BISProgram";
		duration = 8;
		idd = -1;
		movingEnable = false;
		
		controls[]=
		{
			work1,
			name1
		};
		class work1 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_CREDITS04;
			x = 0.05; y = 0.4; w = 0.95; h = 0.3;
			colorText[] = {0.75, 0.75, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 0.5 * 0.05;
			size = 0.8;
		};
		class name1 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_DN_CREDITSN03;
			x = 0.05; y = 0.45; w = 0.95; h = 0.3;
			colorText[] = {1.0, 1.0, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 1.5 * 0.1;
			size = 1.2;
		};
	};	

	class BISArt
	{
		name = "BISArt";
		duration = 8;
		idd = -1;
		movingEnable = false;
		
		controls[]=
		{
			work1,
			name1
		};
		class work1 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_CREDITS03;
			x = 0.05; y = 0.15; w = 0.95; h = 0.3;
			colorText[] = {0.75, 0.75, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 0.5 * 0.05;
			size = 0.8;
		};
		class name1 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_DN_CREDITSN04;
			x = 0.05; y = 0.20; w = 0.95; h = 0.6;
			colorText[] = {1.0, 1.0, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 1.5 * 0.1;
			size = 1.2;
		};
	};

	class BISLand
	{
		name = "BISArt";
		duration = 8;
		idd = -1;
		movingEnable = false;
		
		controls[]=
		{
			work1,
			name1,
			work2,
			name2
		};
		class work1 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_CREDITS05;
			x = 0.05; y = 0.25; w = 0.95; h = 0.3;
			colorText[] = {0.75, 0.75, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 0.5 * 0.05;
			size = 0.8;
		};
		class name1 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_DN_CREDITSN05;
			x = 0.05; y = 0.30; w = 0.95; h = 0.3;
			colorText[] = {1.0, 1.0, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 1.5 * 0.1;
			size = 1.2;
		};
		
		class work2 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_CREDITS06;
			x = 0.05; y = 0.55; w = 0.95; h = 0.3;
			colorText[] = {0.75, 0.75, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 0.5 * 0.05;
			size = 0.8;
		};
		class name2 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_CREDITSN06;
			x = 0.05; y = 0.60; w = 0.95; h = 0.3;
			colorText[] = {1.0, 1.0, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 1.5 * 0.1;
			size = 1.2;
		};
	};

	class BISMusic
	{
		name = "BISArt";
		duration = 8;
		idd = -1;
		movingEnable = false;
		
		controls[]=
		{
			work1,
			name1,
			work2,
			name2
		};
		class work1 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_CREDITS08;
			x = 0.05; y = 0.25; w = 0.95; h = 0.3;
			colorText[] = {0.75, 0.75, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 0.5 * 0.05;
			size = 0.8;
		};
		class name1 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_DN_CREDITSN07;
			x = 0.05; y = 0.30; w = 0.95; h = 0.3;
			colorText[] = {1.0, 1.0, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 1.5 * 0.1;
			size = 1.2;
		};
		class work2 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_CREDITS09;
			x = 0.05; y = 0.55; w = 0.95; h = 0.3;
			colorText[] = {0.75, 0.75, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 0.5 * 0.05;
			size = 0.8;
		};
		class name2 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_CREDITSN09c;
			x = 0.05; y = 0.60; w = 0.95; h = 0.3;
			colorText[] = {1.0, 1.0, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 1.5 * 0.1;
			size = 1.2;
		};
	};
	
	class BISThanks
	{
		name = "BISThanks";
		duration = 8;
		idd = -1;
		movingEnable = false;
		
		controls[]=
		{
			work1,
			name1
		};
		class work1 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_CREDITS22;
			x = 0.05; y = 0.15; w = 0.95; h = 0.3;
			colorText[] = {0.75, 0.75, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 0.5 * 0.05;
			size = 0.8;
		};
		class name1 : RscText
		{
			style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
			lineSpacing = 1.0;
			text = $STR_DN_CREDITSN08;
			x = 0.05; y = 0.20; w = 0.95; h = 0.6;
			colorText[] = {1.0, 1.0, 1.0, 1};
			font = FontMAINCZ;
			sizeEx = 1.5 * 0.1;
			size = 1.2;
		};
	};
	
};
