screen difficultyAdventure
{
	onaction escape "event EscapeAdventureDifficulty"
	
	widget Button Background
	{
		mins 170,10
		size 472,559
		texture "data/gfx/ui/popup menu_full_1.png"
	}

	
	widget EffectEmitter lightning_orb
	{
		mins 405, 78
	
		effectName "HUD_lightning_orb_01"
		
		EventToStartEffectsOn "UIStartDifficultyAdventureEffect"
		EventToStopEffectsOn "UIStopDifficultyAdventureEffect"
		//StartOn
	}
	
	widget label AdvDifficultyTitle
	{
		mins 250, 114
		size 300, 26

		textAlignment "center"
		textVerticalAlignment "Top"	
		
		text "#SelectDifficulty"
		style "Gold32Text"
	}
	
	widget Button Easy
	{
		onaction enter "event HideAllDifficultyText; event StartNewAdventure easy"
		
		onaction hoverOn 	"event ShowEasyText" 
		onaction hoverOff 	"event HideEasyText" 
		
		onaction gainfocus 	"event ShowEasyText" 
		onaction losefocus 	"event HideEasyText"

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

	widget Button Medium
	{
		onaction enter "event HideAllDifficultyText; event StartNewAdventure medium"
		
		onaction hoverOn 	"event ShowMediumText" 
		onaction hoverOff 	"event HideMediumText" 
		
		onaction gainfocus 	"event ShowMediumText" 
		onaction losefocus 	"event HideMediumText"

		mins 336, 250
		size 128, 26
		text "#Medium"
		textAlignment "center"
		textVerticalAlignment "top"
		
		style "Luxor2Style03"
	}
	
	widget Button Hard
	{
		onaction enter "event HideAllDifficultyText; event StartNewAdventure hard"
		
		onaction hoverOn 	"event ShowHardText" 
		onaction hoverOff 	"event HideHardText" 
		
		onaction gainfocus 	"event ShowHardText" 
		onaction losefocus 	"event HideHardText"

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

	widget Button Insane
	{
		onaction enter "event HideAllDifficultyText; event StartNewAdventure insane"
		
		onaction hoverOn 	"event ShowInsaneText" 
		onaction hoverOff 	"event HideInsaneText" 
		
		onaction gainfocus 	"event ShowInsaneText" 
		onaction losefocus 	"event HideInsaneText"

		hidden

		eventToHideOn "UIHideInsaneDifficultySelection"		
		eventToShowOn "UIShowInsaneDifficultySelection"

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

	widget Label EasyText
	{
		hidden

		eventToShowOn "ShowEasyText"
		eventToHideOn "HideEasyText"
		eventToHideOn "HideAllDifficultyText"		
		
		mins 300, 400
		size 200, 50
		text "#EasyText"
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		
		style "DisplayText"
	}
	
	widget Label MediumText
	{
		hidden

		eventToShowOn "ShowMediumText"
		eventToHideOn "HideMediumText"
		eventToHideOn "HideAllDifficultyText"		
		
		mins 300, 400
		size 200, 50
		text "#MediumText"
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		
		style "DisplayText"
	}
	
	widget Label HardText
	{
		hidden

		eventToShowOn "ShowHardText"
		eventToHideOn "HideHardText"
		eventToHideOn "HideAllDifficultyText"		
		
		mins 300, 400
		size 200, 50
		text "#HardText"
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		
		style "DisplayText"
	}
	
	widget Label InsaneText
	{
		hidden

		eventToShowOn "ShowInsaneText"
		eventToHideOn "HideInsaneText"
		eventToHideOn "HideAllDifficultyText"		
		
		mins 300, 400
		size 200, 50
		text "#InsaneText"
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		
		style "DisplayText"
	}
	
	widget Button ReturnToMainMenu
	{
		onaction enter "Endgame" //"SetScreenInAnim MainMenu In_Up; GoToScreenNoOuts MainMenu DoorTransition"

		mins 336, 480
		size 128, 26
		text "#MainMenu"
		textAlignment "center"
		textVerticalAlignment "top"
		
		style "Luxor2Style03"
		
		EventToExecuteActionOn "EscapeAdventureDifficulty"
	}
	
	animation In
	{
		init screen color=(255,255,255,0)
		at 0 ms consoleCommand		"event UIStartDifficultyAdventureEffect"
		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 UIStopDifficultyAdventureEffect"
		at 0 ms colorScreen from (255,255,255,255) to (255,255,255,0) over 300ms speed=Cosine
	}
}


screen difficultyFreeplay
{	
	onaction escape "event EscapeFreeplayDifficulty"
	
	widget Button background
	{
		mins 170,10
		size 472,559
		texture "data/gfx/ui/popup menu_full_1.png"
	}

	widget EffectEmitter lightning_orb
	{
		mins 405, 78
	
		effectName "HUD_lightning_orb_01"
		
		EventToStartEffectsOn "UIStartDifficultyFreeplayEffect"
		EventToStopEffectsOn "UIStopDifficultyFreeplayEffect"
		//StartOn
	}
	
	widget label FreeDifficultyTitle
	{
		mins 250, 114
		size 300, 26

		textAlignment "center"
		textVerticalAlignment "Top"	
		
		text "#SelectDifficulty"
		style "Gold32Text"
	}
	
	widget Button Easy
	{
		onaction enter "event HideAllDifficultyText; event StartNewFreeplayLevel easy"

		onaction hoverOn 	"event ShowFPEasyText" 
		onaction hoverOff 	"event HideFPEasyText" 
		
		onaction gainfocus 	"event ShowFPEasyText" 
		onaction losefocus 	"event HideFPEasyText"

		mins 336, 200
		size 128, 26
		text "#Easy"
		textAlignment "center"
		style "Luxor2Style03"
	}

	widget Button Medium
	{
		onaction enter "event HideAllDifficultyText; event StartNewFreeplayLevel medium"
		
		onaction hoverOn 	"event ShowFPMediumText" 
		onaction hoverOff 	"event HideFPMediumText" 
		
		onaction gainfocus 	"event ShowFPMediumText" 
		onaction losefocus 	"event HideFPMediumText"

		mins 335, 250
		size 128, 26
		text "#Medium"
		textAlignment "center"
		style "Luxor2Style03"
	}
	
	widget Button Hard
	{
		onaction enter "event HideAllDifficultyText; event StartNewFreeplayLevel hard"
		
		onaction hoverOn 	"event ShowFPHardText" 
		onaction hoverOff 	"event HideFPHardText" 
		
		onaction gainfocus 	"event ShowFPHardText" 
		onaction losefocus 	"event HideFPHardText"

		mins 336, 300
		size 128, 26
		text "#Hard"
		textAlignment "center"
		style "Luxor2Style03"
	}

	widget Button Insane
	{
		onaction enter "event HideAllDifficultyText; event StartNewFreeplayLevel insane"
		
		onaction hoverOn 	"event ShowFPInsaneText" 
		onaction hoverOff 	"event HideFPInsaneText" 
		
		onaction gainfocus 	"event ShowFPInsaneText" 
		onaction losefocus 	"event HideFPInsaneText"

		hidden

		eventToHideOn "UIHideInsaneDifficultySelection"		
		eventToShowOn "UIShowInsaneDifficultySelection"

		mins 336, 350
		size 128, 26
		text "#Insane"
		textAlignment "center"
		style "Luxor2Style03"
	}

	widget Label FPEasyText
	{
		hidden

		eventToShowOn "ShowFPEasyText"
		eventToHideOn "HideFPEasyText"
		eventToHideOn "HideAllDifficultyText"		
		
		mins 300, 400
		size 200, 50
		text "#EasyText"
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		
		style "DisplayText"
	}
	
	widget Label FPMediumText
	{
		hidden

		eventToShowOn "ShowFPMediumText"
		eventToHideOn "HideFPMediumText"
		eventToHideOn "HideAllDifficultyText"		
		
		mins 300, 400
		size 200, 50
		text "#MediumText"
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		
		style "DisplayText"
	}
	
	widget Label FPHardText
	{
		hidden

		eventToShowOn "ShowFPHardText"
		eventToHideOn "HideFPHardText"
		eventToHideOn "HideAllDifficultyText"		
		
		mins 300, 400
		size 200, 50
		text "#HardText"
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		
		style "DisplayText"
	}
	
	widget Label FPInsaneText
	{
		hidden

		eventToShowOn "ShowFPInsaneText"
		eventToHideOn "HideFPInsaneText"
		eventToHideOn "HideAllDifficultyText"		
		
		mins 300, 400
		size 200, 50
		text "#InsaneText"
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		
		style "DisplayText"
	}
	
	widget Button Back
	{
		onaction enter "Popdialog"

		mins 336, 480
		size 128, 26

		text "#Back"
		textAlignment "center"
		style "Luxor2Style03"
		
		EventToExecuteActionOn "EscapeFreeplayDifficulty" 
	}	
	
	animation In
	{
		init screen color=(255,255,255,0)
		at 0 ms consoleCommand		"event UIStartDifficultyFreeplayEffect"
		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 UIStopDifficultyFreeplayEffect"
		at 0 ms colorScreen from (255,255,255,255) to (255,255,255,0) over 300ms speed=Cosine
	}
}
