pb2menu 1

background menu_bg_ingame

widget type text
	text "Map Rotation:"
	halign right
	xcent -4
	ycent -40

widget
	yrel 12
	type field
	halign right
	width 12
	text "Map"
	cvar menu_admin_map
	cvar_default "midnight2"

widget
	yrel 16
	xcent -55
	halign center
	text "  Add  "
	command "cmd rotation add $menu_admin_map"
	
widget
	type text
	yrel 12
	halign center
	text "  Remove  "
	command "cmd rotation del $menu_admin_map"

widget
	type text
	yrel 12
	halign center
	text "  Load  "
	command "menu admin\rotation_load"

widget
	type text
	yrel 12
	halign center
	text "  Clear  "
	command "cmd rotation clear"
widget
	type text
	yrel 12
	halign center
	text "  Save  "
	command "cmd rotation save"

widget
	ycent -40
	xcent 14
	type select
	width 12
	size 8
	cvar menu_admin_map
	cvar_default "midnight2"
	filedir "pball/maps/*.bsp"
	strip ".bsp"
	strip "pball/maps/"
	doubleclick "cmd rotation add $menu_admin_map$"
