pb2menu 1

include play_header_include

widget
	type text
	xcent 0
	y 48
	halign center
	text "RECORDED DEMO"

widget
	xcent 0
	halign center
	y 60
	type select
	rows 12
	width 36
	filedir "$game$/demos/*.dm2"
	strip "$game$/demos/"
	strip ".dm2"
	cvar menu_demofile
	doubleclick "demomap $menu_demofile$.dm2; menu off"

widget
	yrel 126
	cvar menu_demofile
	type field
	width 36
	halign center


widget
	yrel 18
	xcent 0
	halign center
	text "Play"
	command "demomap $menu_demofile$.dm2; menu off"


include back_include