pb2menu 1

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 -110
	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 24
	text "[Change]"
	command "cmd newmap $menu_votemap $menu_votemapmode ; menu pop"
widget
	type text
	yrel 14
	text "[Cancel]"
	command "menu pop"

widget
	ycent -60
	xcent 14
	type select
	width 12
	size 12
	cvar menu_votemap
	cvar_default "midnight2"
	filedir "pball/maps/*.bsp"
	strip ".bsp"
	strip "pball/maps/"
	doubleclick "cmd votemap $menu_votemap $menu_votemapmode ; menu pop"
