pb2menu 1

command "menu samelevel map/ingame"

background none

widget
	type pic
	pic select1bm
	picwidth 240
	picheight 148
	xcent -120
	ycent -78

widget type text
	text "Change map:"
	halign center
	xcent 0
	ycent -74

widget
	type text
	text "Map:"
	xcent -115
	ycent -60
widget
	yrel 12
	type field
	width 12
	cvar menu_votemap
	cvar_default "midnight2"
	
widget
	yrel 32
	text "Mode:"
widget
	yrel 12
	type select
	width 7
	height 3
	begin list
		"Elim"
		"DM"
		"1-Flag"
		"CTF"
		"Siege"
		"KOTH"
	end
	cvar menu_votemapmode
	cvar_default "CTF"

widget
	type text
	ycent 40
	xrel 0
	text "Change"
	command "cmd newmap $menu_votemap $menu_votemapmode ; menu pop"

widget
	type text
	yrel 14
	text "Cancel"
	command "menu pop"

widget
	ycent -62
	xcent -5
	type select
	width 14
	size 6
	cvar menu_votemap
	cvar_default "midnight2"
	filedir "pball/maps/*.bsp"
	strip ".bsp"
	strip "pball/maps/"
	doubleclick "cmd votemap $menu_votemap $menu_votemapmode ; menu pop"
	
widget
	yrel 66
	xrel -42
	valign top
	type select
	width 20
	size 6
	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"
