Screen SelectProfile
{
	OnlyDrawIfCurrentReadyScreen
	onaction escape "event UIDoSelectProfileBackButton"
	defaultWidget ProfileOK

	widget Label Background
	{
		mins 170,20
		size 472,559

		texture "data/gfx/ui/popup menu_full_1.png"
	}

	
	widget EffectEmitter lightning_orb
	{
		mins 405, 88
	
		effectName "HUD_lightning_orb_01"
		
		EventToStartEffectsOn "UIStartProfileEffect"
		EventToStopEffectsOn "UIStopProfileEffect"
		//StartOn
	}

	widget Label Description
	{
		mins 266, 125
		size 280, 46
		
		text "#selectplayerprofile"
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		style "DisplayText"
	}

	widget ListBox ProfileListBox
	{
		mins 300, 184
		size 180, 160
		
		EventToPopulateFrom "UIDisplayAvailableProfiles"
		EventToSetSelectedStringFrom "UISetSelectedProfile"
		EventToFireOnSelection "OnSelectedProfile"
		style "Luxor3ListBoxStyle"
		ImagePadding ( 20, 5 )
		
		textAlignment "Center"
		
		SliderToUse "ProfileListBoxSlider"
		UpButtonToUse "ProfileListBoxUpArrow"
		DownButtonToUse "ProfileListBoxDownArrow"
	}
	
	widget Slider ProfileListBoxSlider
	{
		mins 505, 210
		size 40, 118
		
		range 0 1
		
		text " "
		orientation "Vertical"
		
		style "Slider_Vertical"
	}
			
	widget Button ProfileListBoxUpArrow
	{
		mins 505, 175
		size 40, 40

		style "Luxor2Style11"
	}
	
	widget Button ProfileListBoxDownArrow
	{
		mins 505, 320
		size 40, 40

		style "Luxor2Style12"
	}
	
	widget Button ProfileOK
	{
		onaction enter "event CommitSelectedProfile"

		mins 336, 380	
		size 128, 26
		text "#OK"
		textAlignment "center"
		textVerticalAlignment "top"
		style "Luxor2Style03"		
	}
	
	widget Button ProfileNew
	{
		onaction enter "event CreateNewProfileDialog"

		mins 336, 430	
		size 128, 26
		text "#New"
		textAlignment "center"
		textVerticalAlignment "top"
		style "Luxor2Style03"
	}
	
	widget Button ProfileDelete
	{
		onaction enter "event DeleteSelectedProfile"

		mins 336, 480	
		size 128, 26
		text "#Delete"
		textAlignment "center"
		textVerticalAlignment "top"
		style "Luxor2Style03"		
	}

	animation In
	{
		//init screen color=(255,255,255,0)
		at 0 ms consoleCommand	"event UIStartProfileEffect"
		//at 0 ms colorScreen from (255,255,255,0) to (255,255,255,255) over 300ms speed=Cosine
	}
	
	animation Out
	{
		//init screen color=(255,255,255,255)
		at 0 ms consoleCommand	"event UIStopProfileEffect"
		//at 0 ms colorScreen from (255,255,255,255) to (255,255,255,0) over 300ms speed=Cosine
	}
}