pb2menu 1

background none

widget
	type pic
	bpic popup1
	picwidth 240
	picheight 168
	xcent 0
	ycent 0
	halign center
	valign center

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 28
	text "Gamemode:"
widget
	yrel 12
	type select
	width 12
	height 6
	begin list
		"Elim"
		"DM"
		"1-Flag"
		"CTF"
		"Siege"
		"KOTH"
		"Pong"
		"TDM"
	end
	cvar menu_votemapmode
	cvar_default "CTF"

widget
	type text
	ycent -60
	xcent 16
	text "ENormal"
widget
	type text
	xrel 50
	text "|"
widget
	type text
	xrel 12
	text "Beta"
	command "menu pop; menu admin_newmap_beta"
	nobg

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

widget
	type text
	ycent 64
	xcent -70
	halign center
	text "Change"
	command "cmd newmap $menu_votemap $menu_votemapmode ; menu pop"
widget
	type text
	xcent 0
	halign center
	text "Next"
	command "cmd nextmap $menu_votemap $menu_votemapmode ; menu pop ; echo Next map is $menu_votemap with gamemode $menu_votemapmode"
widget
	type text
	xcent 70
	halign center
	text "Cancel"
	command "menu pop"
