pb2menu 1

background conback

command "profile_select $menu_profile_file"

type dialog

widget
	type pic
	bpic popup1
	xcent 0
	ycent 0
	halign center
	valign center
	width 210
	height 180


widget
	xcent 0
	ycent -80
	text "PROFILE"
	halign center

widget
	yrel 16
	xcent 0
	command "menu profile_create"
	text "Create New Profile"
	halign center

widget
	yrel 16
	xcent 0
	command "menu profile_edit"
	text "Edit Selected Profile"
	halign center


widget
	x 80
	yrel 16
	type select
	rows 5
	width 20
	filedir "pball/profiles/*.prf"
	strip "pball/profiles/"
	strip ".prf"
	cvar menu_profile_file
	command "profile_select $menu_profile_file"


widget
	x 80
	yrel 56
	cvar menu_profile_remember_pass
	type checkbox
	text "Remember Password"

widget
	yrel 12
	cvar menu_profile_autologin
	type checkbox
	text "Auto-Login"

widget
	yrel 12
	cvar menu_profile_pass
	type field
	password
	width 20

widget
	yrel 20
	xcent -60
	halign left
	text "Login"
	command "profile_login $menu_profile_file $menu_profile_pass"

widget
	xcent 60
	halign right
	command "menu pop"
	text "Cancel"



