pb2menu 1

background none
type dialog
command "getmaplist"

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

widget type text
	text "Vote for next 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
	name "vote_map_mode"
	listsource "maplist_modes"
	cvar menu_votemapmode
	cvar_default "------"

widget
	type text
	ycent 40
	xrel 24
	text "[ Vote ]"
	command "cmd votemap $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"
	name "vote_map"
	listsource "maplist"
	doubleclick "cmd votemap $menu_votemap $menu_votemapmode ; menu pop"
	click "refresh_widget vote_map_mode"
