pb2menu 1

background menu_bg_ingame
command "getmaplist"

widget
	ycent -40
	xcent 0
	type field
	halign right
	text "Map"
	width 12
	cvar menu_votemap
	cvar_default "midnight2"

widget
	yrel 16
	type select
	halign right
	width 7
	height 6
	name "vote_map_mode"
	begin pairs
		"-1" "Elim"
		"0"	"DM"
		"1"	"1-Flag"
		"2"	"CTF"
		"3"	"Siege"
		"4"	"KOTH"
		"6"	"Pong"
		"7"	"TDM"
	end
	cvar menu_votemapmode

widget
	type text
	halign right
	yrel 32
	xrel -64
	text "  Vote  "
	command "cmd votemap $menu_votemap $menu_votemapmode ; menu pop"
	
widget
	type text
	halign right
	yrel 14
	text " Cancel "
	command "menu pop"

widget
	ycent -40
	xcent 14
	type select
	width 12
	size 8
	cvar menu_votemap
	cvar_default "midnight2"
	name "vote_map"
	listsource "maplist"
	doubleclick "cmd votemap $menu_votemap $menu_votemapmode ; menu pop"
	click "refresh_widget vote_map_mode"
