pb2menu 1

background none
type dialog
command "getmaplist"

widget
	type pic
	bpic popup1
	picwidth 280
	picheight 170
	xcent 0
	ycent 0
	halign center
	valign center

widget type text
	text "VOTE FOR NEXT MAP"
	halign center
	xcent 0
	ycent -74



widget
	type text
	text "Map:"
	xcent -120
	ycent -54
	valign center
widget
	xrel 40
	valign center
	type field
	width 25
	cvar menu_votemap
	cvar_default "midnight2"



widget
	xrel -40
	yrel 16
	text "Game Mode:"
widget
	yrel 12
	type select
	width 10
	height 7
	name "vote_map_mode"
	listsource "maplist_modes"
	cvar menu_votemapmode
	cvar_default "------"

widget
	type text
	ycent 64
	xcent -40
	halign center
	text "Vote"
	command "cmd votemap $menu_votemap $menu_votemapmode ; menu pop"
widget
	type text
	xcent 40
	halign center
	text "Cancel"
	command "menu pop"

widget
	ycent -40
	xcent -22
	type select
	width 18
	size 9
	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"
