pb2menu 1

command "menu samelevel mapm/options"

widget 
	type pic	
	xcent 0
	halign center	
	yabs 16
	pic "m_play1s"

widget
	x 16 y 48
	text "Hostname:"

widget
	yrel 12
	type field
	cvar hostname
	cvar_default "Paintball 2.0 Server"
	width 19

widget
	type field
	yrel 16
	cvar password
	width 10
	text "Password"

widget
	yrel 16
	type field
	text "Max Players"
	cvar_default "10"
	width 3
	cvar maxclients

widget
	yrel 16
	type field
	text "Time Limit"
	cvar timelimit
	cvar_default "20"
	width 3

widget
	yrel 16
	type field
	text "Score Limit"
	cvar fraglimit
	cvar_default "50"
	width 3

widget
	yrel 16
	type field
	width 3
	text "Elim. Time"
	cvar elim
	cvar_default "5"

widget
	yrel 18
	type checkbox
	text "Friendly Fire"
	cvar ffire

widget
	yrel 14
	text "[ More Options ]"
	command "menu play_moreoptions"


widget
	yrel 14
	text "Mode:"
	
widget
	// yrel 14
	xrel 48
	type select
	width 7
	height 2
	begin pairs
		"-1" "Elim"
		"0"	"DM"
		"1"	"1-Flag"
		"2"	"CTF"
		"3"	"Siege"
		"4"	"KOTH"
		"6"	"Pong"
	end
	cvar ctfmode
	cvar_default "2"

widget
	y 48
	xcent 45
	text "Map:"

widget
	yrel 14
	type select
	width 15
	size 7
	cvar menu_mapname
	cvar_default "midnight2"
	filedir "pball/maps/*.bsp"
	strip ".bsp"
	strip "pball/maps/"
	doubleclick "set deathmatch 1; menu off; map $menu_mapname"
	
widget
	yrel 140
	text "Physics Setup"
	command "menu play_setphysics"
	
widget
	yrel -16
	xrel 0
	type select
	valign bottom
	width 20
	size 5
	cvar menu_mapname
	cvar_default "beta/hangtime_b1"
	filedir "pball/maps/beta/*.bsp"
	strip ".bsp"
	strip "pball/maps/"
	doubleclick "set deathmatch 1; menu off; map $menu_mapname"

widget
	xcenter 0
	ybot -28
	halign center
	text "[Begin]"
	command "set deathmatch 1; menu off; map $menu_mapname"

widget
	valign bottom
	ybot -8
	xabs 8
	type text
	command "menu pop"
	text "Back"