screen GameOver
{
	onaction escape ""

	defaultWidget "RetryCurrentLevel"

	widget Label 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 "UIStartGameOverEffect"
		EventToStopEffectsOn "UIStopGameOverEffect"
		//StartOn
	}
	
	widget label Title
	{
		mins 320, 114
		size 160, 26

		textAlignment "center"
		textVerticalAlignment "Top"	
		wordWrap
		
		text "#LevelFail"
		style "BannerText02"
	}

	widget Button RetryCurrentLevel
	{
		onaction enter "restart"

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

	widget Button ReturnToMainMenu
	{
		onaction enter "SetScreenInAnim MainMenu In_Up; endgame"

		mins 336, 250
		size 128, 26
		text "#MainMenu"
		textAlignment "center"
		style "Luxor2Style03"
	}
	
	widget Button Skip
	{
		eventToHideOn "NewLevel"
		eventToShowOn "ShowSkipLevelButton"
		
		onaction enter "event SkipLevel"

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

	widget Button Quit
	{
		onaction enter "quit"

		mins 336, 450
		size 128, 26
		text "#Quit"
		textAlignment "center"
		style "Luxor2Style03"
	}

	animation In
	{
		init screen color=(255,255,255,0)
		at 0 ms consoleCommand	"event UIStartGameOverEffect"
		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 UIStopGameOverEffect"
		at 0 ms colorScreen from (255,255,255,255) to (255,255,255,0) over 300ms speed=Cosine
	}
}