//*********************************************
// menuinst.d
// Menu Konfigurations Datei
// Hier wird das Layout fur die StartUp und Game Menus
// festgelegt
// Autor: Carsten Edenfeld
//*********************************************


// *********************************************************************
// main menu (startup)
// *********************************************************************

INSTANCE MENU_MAIN(C_MENU_DEF) {
	items[0]		= "MENU_ITEM_MAIN_HEADLINE";
	items[1]		= "MENU_ITEM_MAIN_HEADLINE2";
	items[2]		= "MENU_ITEM_MAIN_HEADLINE_PFX";
	items[3]		= "MENU_ITEM_MAIN_NEW_GAME";
	items[4]		= "MENU_ITEM_MAIN_LOAD_GAME";
	items[5]		= "MENU_ITEM_MAIN_MULTIPLAYER";
	items[6]		= "MENU_ITEM_MAIN_OPTIONS";
	items[7]		= "MENU_ITEM_MAIN_CREDITS";
	items[8]		= "MENU_ITEM_MAIN_EXIT"; 
	alpha			= 100;
};
			  
			  
INSTANCE MENU_ITEM_MAIN_HEADLINE(C_MENU_ITEM_DEF) {
	posx		=	1800;
	posy		=	0;
	dimx		=	4500;
	dimy		=	1800;
	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE;
	backPic		=	"logo_ebene2.TGA";
	alphaMode	=	"ADD";
	alpha		=	100;
};
INSTANCE MENU_ITEM_MAIN_HEADLINE2(C_MENU_ITEM_DEF) {
	posx		=	1800;
	posy		=	0;
	dimx		=	4500;
	dimy		=	1800;
	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE;
	backPic		=	"logo_ebene1.TGA";
};
INSTANCE MENU_ITEM_MAIN_HEADLINE_PFX(C_MENU_ITEM_DEF) {	
	posx		=	1800;
	posy		=	500;
	dimx		=	4500;
	dimy		=	1800;
	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE;
	backPic		=	"FIRE_MENU";
};

INSTANCE MENU_ITEM_MAIN_NEW_GAME(C_MENU_ITEM_DEF) {
	text[0]		=	"Neues Spiel";
	text[1]		=	"Nowa gra";
	startPosX	= 	-2000;
	startPosY	=	2400;
	posx		=	2600;
	posy		=	2400;
	onSelAction[0]	= 	SEL_ACTION_CLOSE;
	onSelAction_S[0]=	"NEW_GAME";
};

INSTANCE MENU_ITEM_MAIN_LOAD_GAME(C_MENU_ITEM_DEF) {
	text[0]		=	"Spielstand laden";  
	text[1]		=	"Wczytaj gre"; 
	startPosX	= 	10000;
	startPosY	=	3200;
	posx		=	2600;
	posy		=	3200;
	onSelAction[0]	=	SEL_ACTION_STARTMENU;
	onSelAction_S[0]=	"MENU_LOAD_GAME";
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
};


INSTANCE MENU_ITEM_MAIN_MULTIPLAYER(C_MENU_ITEM_DEF) {
	text[0]		=	"Mehrere Spieler";
	text[1]		=	"Multiplayer";
	startPosX	= 	-2000;
	startPosY	=	4000;
	posx		=	2600;
	posy		=	4000;
	onSelAction[0]	=	SEL_ACTION_STARTMENU;
	onSelAction_S[0]=	"MENU_MULTIPLAYER";	
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
};
	
INSTANCE MENU_ITEM_MAIN_OPTIONS(C_MENU_ITEM_DEF) {
	text[0]		=	"Optionen";   
	text[1]		=	"Opcje";   
	startPosX	= 	10000;
	startPosY	=	4800;
	posx		=	2600;
	posy		=	4800;
	onSelAction[0]	=	SEL_ACTION_STARTMENU;
	onSelAction_S[0]=	"MENU_OPTIONS";
	
};

INSTANCE MENU_ITEM_MAIN_CREDITS(C_MENU_ITEM_DEF) {
	text[0]		=	"Credits";   
	text[1]		=	"Autorzy PL";   
	startPosX	= 	-2000;
	startPosY	=	5600;
	posx		=	2600;
	posy		=	5600;
	onSelAction[0]  = 	SEL_ACTION_STARTMENU;
	onSelAction_S[0]=   "MENU_CREDITS";
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
};


INSTANCE MENU_ITEM_MAIN_EXIT(C_MENU_ITEM_DEF) {
	text[0]		=	"Spiel verlassen";   
	text[1]		=	"Opusc gre";   
	startPosX	= 	10000;
	startPosY	=	6400;
	posx		=	2600;
	posy		=	6400;
	onSelAction[0]	=	SEL_ACTION_STARTMENU;
	onSelAction_S[0]=	"MENU_LEAVE_GAME";
};


// *********************************************************************
// main menu (in-game)
// *********************************************************************

INSTANCE MENU_MAIN_GAME(C_MENU_DEF) {
	items[0]	= "MENU_ITEM_MAIN_HEADLINE";
	items[1]	= "MENU_ITEM_MAIN_HEADLINE2";
	items[2]	= "MENU_ITEM_MAIN_GAME_SAVE_GAME";
	items[3]	= "MENU_ITEM_MAIN_GAME_LOAD_GAME";
	items[4]	= "MENU_ITEM_MAIN_GAME_OPTIONS";
	items[5]	= "MENU_ITEM_MAIN_GAME_RESUME";
	items[6]	= "MENU_ITEM_MAIN_GAME_EXIT";			  
//	items[6]	= "MENU_ITEM_MAIN_GAME_TEST";
	alpha		= 100;
	startOption	= 6;
};
			  
			  
INSTANCE MENU_ITEM_MAIN_GAME_SAVE_GAME(C_MENU_ITEM_DEF) {
	text[0]		=	"Spielstand speichern";
	text[1]		=	"Zapisz gre";
	startPosX	=	-2000;
	startPosY	=	2400;
	posx		=	2600;
	posy		=	2400;
	onSelAction[0]	=	SEL_ACTION_STARTMENU;
	onSelAction_S[0]=	"MENU_SAVE_GAME";
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
};

INSTANCE MENU_ITEM_MAIN_GAME_LOAD_GAME(C_MENU_ITEM_DEF) {
	text[0]		=	"Spielstand laden";
	text[1]		=	"Wczytaj gre"; 
	startPosX	=	10000;
	startPosY	=	3200;
	posx		=	2600;
	posy		=	3200;
	onSelAction[0]	=	SEL_ACTION_STARTMENU;
	onSelAction_S[0]=	"MENU_LOAD_GAME";
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
};


	
INSTANCE MENU_ITEM_MAIN_GAME_OPTIONS(C_MENU_ITEM_DEF) {
	text[0]		=	"Optionen";
	text[1]		=	"Opcje";   
	startPosX	=	-2000;
	startPosY	= 	4000;
	posx		=	2600;
	posy		=	4000;
	onSelAction[0]	=	SEL_ACTION_STARTMENU;
	onSelAction_S[0]=	"MENU_OPTIONS";

};

INSTANCE MENU_ITEM_MAIN_GAME_RESUME(C_MENU_ITEM_DEF) {
	text[0]		=	"Weiterspielen";   
	text[1]		=	"Wznow gre";   
	startPosX	=	10000;
	startPosY	=	4800;
	posx		=	2600;
	posy		=	4800;
	onSelAction[0]	= 	SEL_ACTION_CLOSE;
	onSelAction_S[0]=	"RESUME_GAME";
};


INSTANCE MENU_ITEM_MAIN_GAME_EXIT(C_MENU_ITEM_DEF) {
	text[0]		=	"Spiel verlassen";
	text[1]		=	"Opusc gre";   
	startPosX	=	-2000;
	startPosY	=	5600;
	posx		=	2600;
	posy		=	5600;
	onSelAction[0]	=	SEL_ACTION_STARTMENU;
	onSelAction_S[0]=	"MENU_LEAVE_GAME";
	
};

/*INSTANCE MENU_ITEM_MAIN_GAME_TEST(C_MENU_ITEM_DEF) {
	text[0]		=	"testmode - user actions";
	text[1]		=	"Tryb testowy";
	
	startPosX	=	10000;
	startPosY	=	6400;
	posx		=	2600;
	posy		=	6400;
	onSelAction[0]	=	SEL_ACTION_STARTMENU;
	onSelAction_S[0]=	"MENU_TESTMODE";
	
};
*/
// *********************************************************************
// load game menu
// *********************************************************************
	
INSTANCE MENU_LOAD_GAME(C_MENU_DEF) {
	items[0] 	= "MENU_ITEM_LOAD_HEADLINE";
	items[1] 	= "MENU_ITEM_LOAD_OK";
	items[2] 	= "MENU_ITEM_LOAD_BACK";
	backPic		= "screen11.pcx";
	alpha		= 200;
	posx		= 2000;
	posy		= 2000;
	dimx		= 3000;
	dimy		= 4000;
	flags		= MENU_OVERTOP;
};

INSTANCE MENU_ITEM_LOAD_HEADLINE(C_MENU_ITEM_DEF) {
	text[0]		=	"Spielstand laden";
	text[1]		=	"Wczytaj gre";   
	type		=	MENU_ITEM_TEXT;
	posx		=	200;
	posy		=	300;
	dimx		=	6000;
	dimy		=	2000;
	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT;
};


INSTANCE MENU_ITEM_LOAD_OK(C_MENU_ITEM_DEF)
{
	text[0]		=	"Laden";
	text[1]		=	"Wczytaj";
	posx		=	200;
	posy		=	1400;
	dimx		=	6000;
	dimy		=	2000;
};

INSTANCE MENU_ITEM_LOAD_BACK(C_MENU_ITEM_DEF)
{
	text[0]		=	"Zuruck";
	text[1]		=	"Wroc";
	posx		=	200;
	posy		=	2100;
	dimx		=	6000;
	dimy		=	2000;
};

	
// *********************************************************************
// save game menu
// *********************************************************************
	
INSTANCE MENU_SAVE_GAME(C_MENU_DEF) {
	items[0]	= "MENU_ITEM_SAVE_HEADLINE";
	items[1]	= "MENU_ITEM_SAVE_OK";
	items[2]	= "MENU_ITEM_SAVE_BACK";
};

INSTANCE MENU_ITEM_SAVE_HEADLINE(C_MENU_ITEM_DEF) {
	text[0]		=	"Spielstand speichern";
	text[1]		=	"Zapisz gre";   
	type		=	MENU_ITEM_TEXT;
	posx		=	1000;
	posy		=	400;
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT;
};


INSTANCE MENU_ITEM_SAVE_OK(C_MENU_ITEM_DEF)
{
	text[0]		=	"Speichern";
	text[1]		=	"Zapisz";
	posx		=	1000;
	posy		=	1400;
};

INSTANCE MENU_ITEM_SAVE_BACK(C_MENU_ITEM_DEF)
{
	text[0]		=	"Zuruck";
	text[1]		=	"Wroc";
	posx		=	1000;
	posy		=	2200;
};

// *********************************************************************
// options menu
// *********************************************************************

INSTANCE MENU_OPTIONS(C_MENU_DEF) {
	items[0]	= "MENU_ITEM_OPT_HEADLINE";
	items[1]	= "MENU_ITEM_OPT_VIDEO";
	items[2]	= "MENU_ITEM_OPT_SOUND";
	items[3]	= "MENU_ITEM_OPT_CONTROLS";
	items[4]	= "MENU_ITEM_OPT_NETWORK";
	items[5]	= "MENU_ITEM_OPT_GAME";
	items[6]	= "MENU_ITEM_OPT_BACK";
};

INSTANCE MENU_ITEM_OPT_HEADLINE(C_MENU_ITEM_DEF) {
	text[0]		=	"Optionen";
	text[1]		=	"Opcje";   
	type		=	MENU_ITEM_TEXT;
	posx		=	2600;
	posy		=	400;
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT;
};


INSTANCE MENU_ITEM_OPT_VIDEO(C_MENU_ITEM_DEF)
{
	text[0]		=	"Grafik";
	text[1]		=	"Wideo";
	startPosX	=	-2000;
	startPosY	=	2400;
	posx		=	2600;
	posy		=	2400;
	onSelAction[0]	=	SEL_ACTION_STARTMENU;
	onSelAction_S[0]=	"MENU_VIDEO";
};

INSTANCE MENU_ITEM_OPT_SOUND(C_MENU_ITEM_DEF)
{
	text[0]		=	"Sound";
	text[1]		=	"Dzwiek";
	startPosX	=	10000;
	startPosY	=	3200;
	posx		=	2600;
	posy		=	3200;
	onSelAction[0]	=	SEL_ACTION_STARTMENU;
	onSelAction_S[0]=	"MENU_SOUND";

};

INSTANCE MENU_ITEM_OPT_CONTROLS(C_MENU_ITEM_DEF)
{
	text[0]		=	"Steuerungen";
	text[1]		=	"Sterowanie";
	startPosX	=	-2000;
	startPosY	=	4000;
	posx		=	2600;
	posy		=	4000;
	onSelAction[0]	=	SEL_ACTION_STARTMENU;
	onSelAction_S[0]=	"MENU_INPUT";
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
};
	
INSTANCE MENU_ITEM_OPT_NETWORK(C_MENU_ITEM_DEF)
{
	text[0]		=	"Netzwerk";
	text[1]		=	"Siec";
	startPosX	=	10000;
	startPosY	=	4800;
	posx		=	2600;
	posy		=	4800;
	onSelAction[0]	=	SEL_ACTION_STARTMENU;
	onSelAction_S[0]=	"MENU_NET_OPT";
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
};

INSTANCE MENU_ITEM_OPT_GAME(C_MENU_ITEM_DEF)
{
	text[0]		=	"Game";
	text[1]		=	"Gra";
	startPosX	=	-2000;
	startPosY	=	5600;
	posx		=	2600;
	posy		=	5600;
	onSelAction[0]	=	SEL_ACTION_STARTMENU;
	onSelAction_S[0]=	"MENU_OPT_GAME";
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
};

INSTANCE MENU_ITEM_OPT_BACK(C_MENU_ITEM_DEF)
{
	text[0]		=	"Zuruck";
	text[1]		=	"Wroc";
	startPosX	=	10000;
	startPosY	=	6400;
	posx		=	2600;
	posy		=	6400;
	onSelAction[0]	=	SEL_ACTION_BACK;
};
	
// *********************************************************************
// sound options menu
// *********************************************************************

INSTANCE MENU_SOUND(C_MENU_DEF) {
	items[0]		= "MENU_ITEM_SND_HEADLINE";
	items[1]		= "MENU_ITEM_SND_SFX_VOL";
	items[2]		= "MENU_ITEM_SLIDER_SND_SFX_VOL";
	items[3]		= "MENU_ITEM_SND_MUSIC_VOL";
	items[4]		= "MENU_ITEM_SLIDER_SND_MUSIC_VOL";
	items[5]		= "MENU_ITEM_SND_SPEECH_VOL";
	items[6]		= "MENU_ITEM_SLIDER_SND_SPEECH_VOL";
	items[7]		= "MENU_ITEM_SND_BACK";
};

INSTANCE MENU_ITEM_SND_HEADLINE(C_MENU_ITEM_DEF) {
	text[0]		=	"Sound Optionen";
	text[1]		=	"Ustawienia dzwieku";   
	type		=	MENU_ITEM_TEXT;
	posx		=	500;
	posy		=	400;
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT;
};


INSTANCE MENU_ITEM_SND_SFX_VOL(C_MENU_ITEM_DEF)
{
	text[0]		=	"Sound FX Lautstarke";
	text[1]		=	"Glosnosc Efektow";
	startPosX	=	-2000;
	startPosY	=	2400;
	posx		=	500;
	posy		=	2400;
	onSelAction[0]  =	SEL_ACTION_UNDEF;
};

INSTANCE MENU_ITEM_SLIDER_SND_SFX_VOL(C_MENU_ITEM_DEF)
{
	startPosX	=	-2000;
	startPosY	=	2400;
	posx		=	6000;
	posy		=	2400;
	dimx		=	2000;
	dimy		=	500;
	type		=	MENU_ITEM_SLIDER;
	backPic		=	"slider_back.tga";
	onChgSetOption	=	"ZOPT_SND_SFX_VOL";
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE;
	alphaMode	= 	"ADD";
};


INSTANCE MENU_ITEM_SND_MUSIC_VOL(C_MENU_ITEM_DEF)
{
	text[0]		=	"Musik Lautstarke";
	text[1]		=	"Glosnosc Muzyki";
	startPosX	=	10000;
	startPosY	=	3200;
	posx		=	500;
	posy		=	3200;
	onSelAction[0]  =	SEL_ACTION_UNDEF;
};

INSTANCE MENU_ITEM_SLIDER_SND_MUSIC_VOL(C_MENU_ITEM_DEF)
{
	startPosX	=	10000;
	startPosY	=	3200;
	posx		=	6000;
	posy		=	3200;
	dimx		=	2000;
	dimy		=	500;
	type		=	MENU_ITEM_SLIDER;
	backPic		=	"slider_back.tga";
	onChgSetOption	=	"ZOPT_SND_MUSIC_VOL";
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE;
	alphaMode	= 	"ADD";
};

INSTANCE MENU_ITEM_SND_SPEECH_VOL(C_MENU_ITEM_DEF)
{
	text[0]		=	"Sprach Lautstarke";
	text[1]		=	"Glosnosc Mowy";
	startPosX	=	-2000;
	startPosY	=	4000;
	posx		=	500;
	posy		=	4000;
	onSelAction[0]  =	SEL_ACTION_UNDEF;
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
};

INSTANCE MENU_ITEM_SLIDER_SND_SPEECH_VOL(C_MENU_ITEM_DEF)
{
	startPosX	=	-2000;
	startPosY	=	4000;
	posx		=	6000;
	posy		=	4000;
	dimx		=	2000;
	dimy		=	500;
	type		=	MENU_ITEM_SLIDER;
	backPic		=	"slider_back.tga";
	onChgSetOption	=	"ZOPT_SND_SPEECH_VOL";
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE;
	alphaMode	= 	"ADD";
};
	
INSTANCE MENU_ITEM_SND_BACK(C_MENU_ITEM_DEF)
{
	text[0]		=	"Zuruck";
	text[1]		=	"Wroc";
	startPosX	=	10000;
	startPosY	=	4800;
	posx		=	500;
	posy		=	4800;
	onSelAction[0]	=	SEL_ACTION_BACK;
};
	
	
// *********************************************************************
// video options menu
// *********************************************************************

INSTANCE MENU_VIDEO(C_MENU_DEF) {
	items[0]		= "MENU_ITEM_VID_HEADLINE";
	items[1]		= "MENU_ITEM_VID_GAMMA";
	items[2]		= "MENU_ITEM_SLIDER_VID_GAMMA";
	items[3]		= "MENU_ITEM_VID_RESOLUTION";
	items[4]		= "MENU_ITEM_CHOICEBOX_VID_RESOLUTION";
	items[4]		= "MENU_ITEM_VID_BACK";
};

INSTANCE MENU_ITEM_VID_HEADLINE(C_MENU_ITEM_DEF) {
	text[0]		=	"Grafik Optionen";  
	text[1]		=	"Ustawienia Wideo";   
	type		=	MENU_ITEM_TEXT;
	posx		=	500;
	posy		=	400;
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT;
	backPic		=	"FIRE_MENU";
};


INSTANCE MENU_ITEM_VID_GAMMA(C_MENU_ITEM_DEF)
{
	text[0]		=	"Helligkeit";
	text[1]		=	"Jasnosc";
	startPosX	=	-2000;
	startPosY	=	2400;
	posx		=	500;
	posy		=	2400;
	onSelAction[0]  =	SEL_ACTION_UNDEF;
};

INSTANCE MENU_ITEM_SLIDER_VID_GAMMA(C_MENU_ITEM_DEF)
{
	startPosX	=	-2000;
	startPosY	=	2400;
	posx		=	6000;
	posy		=	2400;
	dimx		=	2000;
	dimy		=	500;
	type		=	MENU_ITEM_SLIDER;
	backPic		=	"slider_back.tga";
	onChgSetOption	=	"ZOPT_VID_GAMMA";
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE;
	alphaMode	= 	"ADD";
};


INSTANCE MENU_ITEM_VID_RESOLUTION(C_MENU_ITEM_DEF)
{
	text[0]		=	"Bildschirmauflosung";
	text[1]		=	"Rozdzielczosc Ekranu";
	startPosX	=	10000;
	startPosY	=	3000;
	posx		=	500;
	posy		=	3000;
	onSelAction[0]	=	SEL_ACTION_STARTITEM;
	onSelAction_S[0]=	"MENU_ITEM_CHOICEBOX_VID_RESOLUTION";
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
};

INSTANCE MENU_ITEM_CHOICEBOX_VID_RESOLUTION(C_MENU_ITEM_DEF)
{
	startPosX	=	10000;
	startPosY	=	3000;
	posx		=	6000;
	posy		=	3000;
	dimx		=	2000;
	dimy		=	2000;
	type		=	MENU_ITEM_CHOICEBOX;
	backPic		=	"roleback.pcx";
	onChgSetOption	=	"ZOPT_VID_RES";
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
	onEventAction[EVENT_INIT] = Update_VidResolutionChoiceBox;
	fontName	=	"font_game.fon";
};
	
INSTANCE MENU_ITEM_VID_BACK(C_MENU_ITEM_DEF)
{
	text[0]		=	"Zuruck";
	text[1]		=	"Wroc";
	startPosX	=	-2000;
	startPosY	=	3800;
	posx		=	500;
	posy		=	3800;
	onSelAction[0]	=	SEL_ACTION_BACK;
};
	
// *********************************************************************
// input options menu
// *********************************************************************

INSTANCE MENU_INPUT(C_MENU_DEF) {
	items[0]		= "MENU_ITEM_INPUT_HEADLINE";
	items[1]		= "MENU_ITEM_INPUT_CHG_KEYS";
	items[2]		= "MENU_ITEM_INPUT_JOY";
	items[3]		= "MENU_ITEM_INPUT_BACK";
};

INSTANCE MENU_ITEM_INPUT_HEADLINE(C_MENU_ITEM_DEF) {
	text[0]		=	"Steuerungs-Optionen";
	text[1]		=	"Ustawienia sterowania";   
	type		=	MENU_ITEM_TEXT;
	posx		=	1000;
	posy		=	400;
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT;
	backPic		=	"FIRE_MENU";
};


INSTANCE MENU_ITEM_INPUT_CHG_KEYS(C_MENU_ITEM_DEF)
{
	text[0]		=	"Tastaturbelegung andern";
	text[1]		=	"Konfiguracja Kontrolera";
	posx		=	1000;
	posy		=	1400;
};

INSTANCE MENU_ITEM_INPUT_JOY(C_MENU_ITEM_DEF)
{
	text[0]		=	"Joystick konfigurieren";
	text[1]		=	"Konfiguracja Joystick'a";
	posx		=	1000;
	posy		=	2200;
};

	
INSTANCE MENU_ITEM_INPUT_BACK(C_MENU_ITEM_DEF)
{
	text[0]		=	"Zuruck";
	text[1]		=	"Wroc";
	posx		=	1000;
	posy		=	3000;
	onSelAction[0]	=	SEL_ACTION_BACK;
};
	
	
// *********************************************************************
// net options menu
// *********************************************************************

INSTANCE MENU_NET_OPT(C_MENU_DEF) {
	items[0]		= "MENU_ITEM_NET_OPT_HEADLINE";
	items[1]		= "MENU_ITEM_NET_OPT_BACK";
};

INSTANCE MENU_ITEM_NET_OPT_HEADLINE(C_MENU_ITEM_DEF) {
	text[0]		=	"Netzwerk-Optionen";
	text[1]		=	"Ustawienia Sieci";   
	type		=	MENU_ITEM_TEXT;
	posx		=	1000;
	posy		=	400;
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT;
	backPic		=	"FIRE_MENU";
};


INSTANCE MENU_ITEM_NET_OPT_BACK(C_MENU_ITEM_DEF)
{
	text[0]		=	"Zuruck";
	text[1]		=	"Wroc";
	posx		=	1000;
	posy		=	1400;
	onSelAction[0]	=	SEL_ACTION_BACK;
};

// *********************************************************************
// credit menu
// *********************************************************************

INSTANCE MENU_CREDITS(C_MENU_DEF) {
	items[0]	= "MENU_ITEM_CREDITS_HEADLINE";
	items[1]	= "MENU_ITEM_CREDITS_BACK";
	items[2]    = "MENU_ITEM_CREDITS_OPTIK";
	items[3]    = "MENU_ITEM_CREDITS_CREED";
	items[4]    = "MENU_ITEM_CREDITS_STEVEN";
	items[5]    = "MENU_ITEM_CREDITS_ROLEWSKI";
	items[6]    = "MENU_ITEM_CREDITS_MCAPRIL";
//	items[7]    = "MENU_ITEM_CREDITS_BLOODY";
};

INSTANCE MENU_ITEM_CREDITS_HEADLINE(C_MENU_ITEM_DEF) {
	text[0]		=	"Credits";
	text[1]		=	"Autorzy PL";   
	type		=	MENU_ITEM_TEXT;
	posx		=	1000;
	posy		=	400;
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT;
	backPic		=	"FIRE_MENU";
};


INSTANCE MENU_ITEM_CREDITS_OPTIK(C_MENU_ITEM_DEF)
{
	text[0]		=	"Optik";
	text[1]		=	"JC Optik - Tlumaczenie";
	posx		=	1000;
	posy		=	1400;
	onSelAction[0]	=	SEL_ACTION_BACK;
};


INSTANCE MENU_ITEM_CREDITS_CREED(C_MENU_ITEM_DEF)
{
	text[0]		=	"Creed";
	text[1]		=	"Creed - Tlumaczenie";
	posx		=	1000;
	posy		=	2200;
	onSelAction[0]	=	SEL_ACTION_BACK;
};

INSTANCE MENU_ITEM_CREDITS_STEVEN(C_MENU_ITEM_DEF)
{
	text[0]		=	"Steven";
	text[1]		=	"Steven - Tlumaczenie";
	posx		=	1000;
	posy		=	3000;
	onSelAction[0]	=	SEL_ACTION_BACK;
};

INSTANCE MENU_ITEM_CREDITS_ROLEWSKI(C_MENU_ITEM_DEF)
{
	text[0]		=	"Rolewski";
	text[1]		=	"Rolewski - Tlumaczenie";
	posx		=	1000;
	posy		=	3800;
	onSelAction[0]	=	SEL_ACTION_BACK;
};

INSTANCE MENU_ITEM_CREDITS_MCAPRIL(C_MENU_ITEM_DEF)
{
	text[0]		=	"MCAPRIL";
	text[1]		=	"McApril - 'Elo Rozmarynie'";
	posx		=	1000;
	posy		=	4600;
	onSelAction[0]	=	SEL_ACTION_BACK;
};

/*INSTANCE MENU_ITEM_CREDITS_BLOODY(C_MENU_ITEM_DEF)
{
	text[0]		=	"BLOODY";
	text[1]		=	"Bloody - Leak Alphy";
	posx		=	1000;
	posy		=	5400;
	onSelAction[0]	=	SEL_ACTION_BACK;
};
*/

INSTANCE MENU_ITEM_CREDITS_BACK(C_MENU_ITEM_DEF)
{
	text[0]		=	"Zuruck";
	text[1]		=	"Wroc";
	posx		=	1000;
	posy		=	7600;
	onSelAction[0]	=	SEL_ACTION_BACK;
};


	
// *********************************************************************
// leave game menu
// *********************************************************************

INSTANCE MENU_LEAVE_GAME(C_MENU_DEF) {
	items[0]	= "MENU_ITEM_LEAVE_GAME_HEADLINE";
	items[1]	= "MENU_ITEM_LEAVE_GAME_OK";
	items[2]	= "MENU_ITEM_LEAVE_GAME_BACK";
};

INSTANCE MENU_ITEM_LEAVE_GAME_HEADLINE(C_MENU_ITEM_DEF) {
	text[0]		=	"Spiel verlassen ?";
	text[1]		=	"Wyjsc z gry?";   
	type		=	MENU_ITEM_TEXT;
	posx		=	1000;
	posy		=	400;
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT;
	backPic		=	"FIRE_MENU";
};

INSTANCE MENU_ITEM_LEAVE_GAME_OK(C_MENU_ITEM_DEF)
{
	text[0]		=	"Ja";
	text[1]		=	"Tak";
	posx		=	1000;
	posy		=	1400;
	onSelAction[0]	=	SEL_ACTION_CLOSE;
	onSelAction_S[0]=	"LEAVE_GAME";
};


INSTANCE MENU_ITEM_LEAVE_GAME_BACK(C_MENU_ITEM_DEF)
{
	text[0]		=	"Nein";
	text[1]		=	"Nie";
	posx		=	1000;
	posy		=	2200;
};
	
	
// *********************************************************************
// game options menu
// *********************************************************************

INSTANCE MENU_OPT_GAME(C_MENU_DEF) {
	items[0]		= "MENU_ITEM_OPT_GAME_HEADLINE";
	items[1]		= "MENU_ITEM_OPT_GAME_LANG";
	items[2]		= "MENU_ITEM_OPT_GAME_BACK";
};

INSTANCE MENU_ITEM_OPT_GAME_HEADLINE(C_MENU_ITEM_DEF) {
	text[0]		=	"Spiel Optionen";
	text[1]		=	"Ustawienia Gry";   
	type		=	MENU_ITEM_TEXT;
	posx		=	1000;
	posy		=	400;
//	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT;
	backPic		=	"FIRE_MENU";
};

INSTANCE MENU_ITEM_OPT_GAME_LANG(C_MENU_ITEM_DEF)
{
	text[0]		=	"Sprache wahlen";
	text[1]		=	"Wybierz Jezyk";
	posx		=	1000;
	posy		=	1400;
};


INSTANCE MENU_ITEM_OPT_GAME_BACK(C_MENU_ITEM_DEF)
{
	text[0]		=	"Zuruck";
	text[1]		=	"Wroc";
	posx		=	1000;
	posy		=	2200;
	onSelAction[0]	=	SEL_ACTION_BACK;
	
};
	

// *********************************************************************
// testmode options 
// *********************************************************************

INSTANCE MENU_TESTMODE(C_MENU_DEF) {
	items[0]		= "MENU_ITEM_TEST_0";
	items[1]		= "MENU_ITEM_TEST_1";
	items[2]		= "MENU_ITEM_TEST_2";
	items[3]		= "MENU_ITEM_TEST_3";
	items[4]		= "MENU_ITEM_TEST_4";
	items[5]		= "MENU_ITEM_TEST_5";
	items[6]		= "MENU_ITEM_TEST_6";
	items[7]		= "MENU_ITEM_TEST_7";
	items[8]		= "MENU_ITEM_TEST_8";
	items[9]		= "MENU_ITEM_TEST_9";
};

INSTANCE MENU_ITEM_TEST_0(C_MENU_ITEM_DEF) {
	text[0]		=	"Test Features";
	text[1]		=	"Testowe Funkcje";   
	type		=	MENU_ITEM_TEXT;
	posx		=	1000;
	posy		=	400;
};

INSTANCE MENU_ITEM_TEST_1(C_MENU_ITEM_DEF)
{
	text[0]		=	"render mode: flat ";
	text[1]		=	"Tryb renderowania: plaski";
	posx		=	1000;
	posy		=	1400;
	onSelAction[0]	= 	SEL_ACTION_CONCOMMANDS;
	onSelAction_S[0]=	"zrmode flat";
};

INSTANCE MENU_ITEM_TEST_2(C_MENU_ITEM_DEF)
{
	text[0]		=	"render mode: material";
	text[1]		=	"Tryb renderowania: material";
	posx		=	1000;
	posy		=	2200;
	onSelAction[0]	= 	SEL_ACTION_CONCOMMANDS;
	onSelAction_S[0]=	"zrmode mat";
};
INSTANCE MENU_ITEM_TEST_3(C_MENU_ITEM_DEF)
{
	text[0]		=	"Edit Sound Sys Prefs (Script)";
	text[1]		=	"Edycja systemu dzwieku (Skrypty)";
	posx		=	1000;
	posy		=	3000;
	onSelAction[0]	= 	SEL_ACTION_CONCOMMANDS;
	onSelAction_S[0]=	"edit soundsysprefs";
};
INSTANCE MENU_ITEM_TEST_4(C_MENU_ITEM_DEF)
{
	text[0]		=	"human sprint";
	text[1]		=	"human sprint";
	posx		=	1000;
	posy		=	3800;
	onSelAction[0]	= 	SEL_ACTION_CONCOMMANDS;
	onSelAction_S[0]=	"apply overlaymds human_sprint.mds | start sound light_casted ";
};
INSTANCE MENU_ITEM_TEST_5(C_MENU_ITEM_DEF)
{
	text[0]		=	"Test Exec Sound";
	text[1]		=	"ITest Exec Sound";
	posx		=	1000;
	posy		=	4600;
	onEventAction[EVENT_EXECUTE] = PlayTestSound;
};
INSTANCE MENU_ITEM_TEST_6(C_MENU_ITEM_DEF)
{
	text[0]		=	"Item Test 6";
	text[1]		=	"Item Test 6";
	posx		=	1000;
	posy		=	5400;
	onSelAction[0]	= 	SEL_ACTION_STARTITEM;
	onSelAction_S[0]= 	"MENU_ITEM_INPUT_TEST";
	
};
INSTANCE MENU_ITEM_INPUT_TEST(C_MENU_ITEM_DEF)
{
	text[0]		=	"Input Box";
	text[1]		=	"Input Box";
	posx		=	1000;
	posy		=	6500;
	type		= 	MENU_ITEM_INPUT;
	alpha		= 	254;
	onSelAction[0]	= 	SEL_ACTION_STARTITEM;
	onSelAction_S[0]= 	"MENU_ITEM_INPUT_TEST";  // Selectable Item, start self
};
INSTANCE MENU_ITEM_TEST_7(C_MENU_ITEM_DEF)
{
	text[0]		=	"Item Test 7";
	text[1]		=	"Item Test 7";
	posx		=	1000;
	posy		=	6200;
};
INSTANCE MENU_ITEM_TEST_8(C_MENU_ITEM_DEF)
{
	text[0]		=	"Item Test 8";
	text[1]		=	"Item Test 8";
	posx		=	1000;
	posy		=	7000;
};
INSTANCE MENU_ITEM_TEST_9(C_MENU_ITEM_DEF)
{
	text[0]		=	"Zuruck";
	text[1]		=	"Wroc";
	posx		=	6000;
	posy		=	7000;
	dimx		=	1000;
	dimy		=	500;
};

func int PlayTestSound()
{
	return CLOSE_ITEM;
};


func int Update_VidResolutionChoiceBox()
{
	Update_ChoiceBox("MENU_ITEM_CHOICEBOX_VID_RESOLUTION");
	return 1;
};

