pb2menu 1


include play_header_include




widget
	x 16 y 48
	text "Hostname:"

widget
	yrel 12
	type field
	cvar hostname
	cvar_default "PB2Q2 server"
	width 19

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

widget
	yrel 16
	type field
	text "Max Players"
	cvar_default "8"
	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 checkbox
	text "Deathmatch"
	cvar deathmatch
	cvar_default "1"

widget
	yrel 14
	type checkbox
	text "Co-op"
	cvar coop
	cvar_default "0"




widget

	y 44
	xcent 40
	type pic
	bpic border1
	picwidth 104
	picheight 80


widget
	yrel 5
	xrel 5
	type pic
	picwidth 94
	picheight 70
	pic "mapshots/$menu_mapname$"
	missingpic "mapshots/-no-preview-"

widget
	xrel -2
	yrel 77
	type select
	width 12
	size 8
	cvar menu_mapname
	cvar_default "midnight2"
	filedir "$game$/maps/*.bsp"
	strip ".bsp"
	strip "$game$/maps/"
	doubleclick "menu off; map $menu_mapname"


widget
	xcenter 0
	ybot -24
	halign center
	text "Start Game"
	command "menu off; map $menu_mapname"



include back_include
