
INSTANCE MENU_MULTIPLAYER(C_MENU_DEF) {
	items[0]		= "MENU_ITEM_NET_PLAYERNAME_TEXT";
	items[1]		= "MENU_ITEM_NET_PLAYERNAME";
	
	items[2]		= "MENU_ITEM_NET_CREATE";
	items[3]		= "MENU_ITEM_NET_CREATE_GAMENAME";
	items[4]		= "MENU_ITEM_NET_CONNECT";
	items[5]		= "MENU_ITEM_NET_SEARCH";
	items[6]		= "MENU_ITEM_NET_GAMELIST";
	items[7]		= "MENU_ITEM_NET_GAMEIP_TEXT";
	items[8]		= "MENU_ITEM_NET_GAMEIP";
	items[9]		= "MENU_ITEM_NET_CANCEL";
		
	backPic			= "menu_multiplayer.tga";
};


	
INSTANCE MENU_ITEM_NET_PLAYERNAME_TEXT(C_MENU_ITEM_DEF) {
	
	text[0]		=	"Dein Name";  
	text[1]		=	"Imię"; 	
	
	posx		=	300;
	posy		=	1200;		
	dimx		=	1500;
	dimy		=	450;	
	
	onSelAction[0]	=	SEL_ACTION_STARTITEM;
	onSelAction_S[0]=       "MENU_ITEM_NET_PLAYERNAME";	
};

	
INSTANCE MENU_ITEM_NET_PLAYERNAME(C_MENU_ITEM_DEF) {

	type 		= 	MENU_ITEM_INPUT;
	text[0]		=	"Neuer Spieler";  
	text[1]		=	"Nowy Gracz"; 
	
	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
	
	posx		=	2500;
	posy		=	1200;		
	dimx		=	3500;
	dimy		=	450;

	onChgSetOption	= "playerName";
	
	backPic		=	"roleback.pcx";
};


			  
INSTANCE MENU_ITEM_NET_CREATE(C_MENU_ITEM_DEF) {
	text[0]		=	"Erzeugen";
	text[1]		=	"Stwórz";
	
	posx		=	300;
	posy		=	2000;		
	dimx		= 	1500;
	dimy		=	500;
	
	onSelAction[0] = SEL_ACTION_STARTITEM;
	onSelAction_S[0] = "MENU_ITEM_NET_CREATE_GAMENAME";
	onSelAction[1] = SEL_ACTION_STARTMENU;	
	onSelAction_S[1] = "MENU_NETCHAT_MASTER";
	
};

INSTANCE MENU_ITEM_NET_CREATE_GAMENAME(C_MENU_ITEM_DEF) {
	
	type 		= MENU_ITEM_INPUT;
	
	text[0]		=	"Neues Spiel";
	text[1]		=	"Nowa Gra";	
	
	posx		=	2500;
	posy		=	2000;
	dimx		=	3500;
	dimy		=	450;
	
	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
	backPic		=	"roleback.pcx";		
	
	onChgSetOption	= "gameName";
};


INSTANCE MENU_ITEM_NET_CONNECT(C_MENU_ITEM_DEF) {
	text[0]		=	"Verbinden";
	text[1]		=	"Połącz";
	
	posx		=	300;
	posy		=	3000;		
	dimx		= 	1500;
	dimy		=	500;
	
	onSelAction[0] = SEL_ACTION_STARTMENU;
	onSelAction_S[0] = "MENU_NETCHAT_SLAVE";
	
};


INSTANCE MENU_ITEM_NET_SEARCH(C_MENU_ITEM_DEF) {
	text[0]		=	"Suchen";
	text[1]		=	"Szukaj";
	
	posx		=	2500;
	posy		=	3000;		
	dimx		= 	1000;
	dimy		=	450;
	
	onSelAction[0] = SEL_ACTION_EXECCOMMANDS;
	onSelAction_S[0] = "NetSearchForMasters";
	
};
	
	
INSTANCE MENU_ITEM_NET_GAMELIST(C_MENU_ITEM_DEF) {
	text[0]		=	"Liste der Server";  
	text[1]		=	"Lista Serwerów"; 
	
	posx		=	4000;
	posy		=	3000;		
	dimx		=	3500;
	dimy		=	3200;

	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
	backPic		=	"roleback.pcx";	

};

	
INSTANCE MENU_ITEM_NET_GAMEIP_TEXT(C_MENU_ITEM_DEF) {
	
	text[0]		=	"IP";  
	text[1]		=	"IP"; 	
	
	posx		=	2500;
	posy		=	6500;		
	dimx		=	1000;
	dimy		=	450;	
	
	onSelAction[0]	=	SEL_ACTION_STARTITEM;
	onSelAction_S[0]=       "MENU_ITEM_NET_GAMEIP";
	onSelAction[1]	=	SEL_ACTION_EXECCOMMANDS;
	onSelAction_S[1]=	"NetChangeIP";
};

	
INSTANCE MENU_ITEM_NET_GAMEIP(C_MENU_ITEM_DEF) {

	type 		= MENU_ITEM_INPUT;
	text[0]		=	"";  
	text[1]		=	""; 
	
	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
	
	posx		=	4000;
	posy		=	6500;		
	dimx		=	3500;
	dimy		=	450;
		
	backPic		=	"roleback.pcx";		
};


INSTANCE MENU_ITEM_NET_CANCEL(C_MENU_ITEM_DEF) {
	text[0]		=	"Abbruch";  
	text[1]		=	"Anuluj"; 
	
	posx		=	300;
	posy		=	6500;
	dimx		=	1000;
	dimy		=	450;
	
	onSelAction[0]	=	SEL_ACTION_BACK;
};


////////////////////////////////////////////////////////////////////////
// Chatroom
////////////////////////////////////////////////////////////////////////

INSTANCE MENU_NETCHAT_MASTER(C_MENU_DEF) {	
	items[0]		= "MENU_ITEM_NETCHAT_GAMEINFO";

	items[1]		= "MENU_ITEM_NETCHAT_PC_HERO";
	items[2]		= "MENU_ITEM_NETCHAT_PC_FIGHTER";
	items[3]		= "MENU_ITEM_NETCHAT_PC_THIEF";
	items[4]		= "MENU_ITEM_NETCHAT_PC_PSIONIC";
	items[5]		= "MENU_ITEM_NETCHAT_PC_MAGE";
	items[6]		= "MENU_ITEM_NETCHAT_START";
	items[7]		= "MENU_ITEM_NETCHAT_READY";
	items[8]		= "MENU_ITEM_NETCHAT_CANCEL";	
	
	backPic			= "menu_chatroom.tga";
};

INSTANCE MENU_NETCHAT_SLAVE(C_MENU_DEF) {	
	items[0]		= "MENU_ITEM_NETCHAT_GAMEINFO";

	items[1]		= "MENU_ITEM_NETCHAT_PC_HERO";
	items[2]		= "MENU_ITEM_NETCHAT_PC_FIGHTER";
	items[3]		= "MENU_ITEM_NETCHAT_PC_THIEF";
	items[4]		= "MENU_ITEM_NETCHAT_PC_PSIONIC";
	items[5]		= "MENU_ITEM_NETCHAT_PC_MAGE";	
	items[6]		= "MENU_ITEM_NETCHAT_READY";
	items[7]		= "MENU_ITEM_NETCHAT_CANCEL";	
	
	backPic			= "menu_chatroom.tga";
};
			  
			  

INSTANCE MENU_ITEM_NETCHAT_GAMEINFO(C_MENU_ITEM_DEF) {
	text[0]		=	"";
	text[1]		=	"";
	
	type		=	MENU_ITEM_TEXT;
	posx		=	5350;
	posy		=	1500;	
	dimx 		=	2300;
	dimy		=	5000;	
	
	flags		=	IT_CHROMAKEYED|IT_TRANSPARENT|IT_PFX_AUTO_SIZE|IT_MOVEABLE;
	backPic		=	"";
		
};


INSTANCE MENU_ITEM_NETCHAT_PC_HERO(C_MENU_ITEM_DEF) {
	text[0]		=	"Held";
	text[1]		=	"Bohater";
	
	type		=	MENU_ITEM_TEXT;
	posx		=	500;
	posy		=	1500;	
	dimx 		=	4450;
	dimy		=	900;	
	
	backPic		=	"";
	
	onSelAction[0]	=	SEL_ACTION_EXECCOMMANDS;
	onSelAction_S[0]	=	"NetSelect_PC_HERO";
};

INSTANCE MENU_ITEM_NETCHAT_PC_FIGHTER(C_MENU_ITEM_DEF) {
	text[0]		=	"Krieger";
	text[1]		=	"Wojownik";
	
	type		=	MENU_ITEM_TEXT;
	posx		=	500;
	posy		=	2600;	
	dimx 		=	4450;
	dimy		=	900;	
	
	backPic		=	"";
	
	onSelAction[0]	=	SEL_ACTION_EXECCOMMANDS;
	onSelAction_S[0]	=	"NetSelect_PC_FIGHTER";
};

INSTANCE MENU_ITEM_NETCHAT_PC_THIEF(C_MENU_ITEM_DEF) {
	text[0]		=	"Dieb";
	text[1]		=	"Złodziej";
	
	type		=	MENU_ITEM_TEXT;
	posx		=	500;
	posy		=	3700;	
	dimx 		=	4450;
	dimy		=	900;	
	
	backPic		=	"";
	
	onSelAction	=	SEL_ACTION_EXECCOMMANDS;
	onSelAction_S	=	"NetSelect_PC_THIEF";
};


INSTANCE MENU_ITEM_NETCHAT_PC_PSIONIC(C_MENU_ITEM_DEF) {	 
	text[0]		=	"Psioniker";
	text[1]		=	"Psionik";
	
	type		=	MENU_ITEM_TEXT;
	posx		=	500;
	posy		=	4800;	
	dimx 		=	4450;
	dimy		=	900;	
	
	backPic		=	"";
	
	onSelAction	=	SEL_ACTION_EXECCOMMANDS;
	onSelAction_S	=	"NetSelect_PC_PSIONIC";
};

INSTANCE MENU_ITEM_NETCHAT_PC_MAGE(C_MENU_ITEM_DEF) {
	text[0]		=	"Magier";
	text[1]		=	"Mag";
	
	type		=	MENU_ITEM_TEXT;
	posx		=	500;
	posy		=	5900;	
	dimx 		=	4450;
	dimy		=	900;
	
	backPic		=	"";
	
	onSelAction[0]	=	SEL_ACTION_EXECCOMMANDS;
	onSelAction_S[0]	=	"NetSelect_PC_MAGE";
};

INSTANCE MENU_ITEM_NETCHAT_START(C_MENU_ITEM_DEF) {
	text[0]		=	"Starten";
	text[1]		=	"Start";
	
	posx		=	500;
	posy		=	7400;
	dimx 		=	2000;
	
	onSelAction[0]	=	SEL_ACTION_EXECCOMMANDS;
	onSelAction_S[0]	="NEW_GAME_NET";
	onSelAction[1]	=	SEL_ACTION_CLOSE;
	onSelAction_S[1]	="NEW_GAME_NET";
};


INSTANCE MENU_ITEM_NETCHAT_READY(C_MENU_ITEM_DEF) {
	text[0]		=	"Bereit";
	text[1]		=	"Gotowy";
	
	posx		=	2300;
	posy		=	7400;
	dimx		=	2000;		
	
	onSelAction[0]	=	SEL_ACTION_EXECCOMMANDS;
	onSelAction_S[0]	="NetPlayerReady";
};



INSTANCE MENU_ITEM_NETCHAT_CANCEL(C_MENU_ITEM_DEF) {
	text[0]		=	"Abbruch";
	text[1]		=	"Anuluj";
	
	posx		=	7000;
	posy		=	7400;
	dimx		=	1000;		
	
	onSelAction[0]	=	SEL_ACTION_BACK;
};

