screen EndOfLevelAdventureClassic
{
	onaction escape "event EscapeAdventureClassic"

	widget Button Frame
	{
		mins 80,10
		size 640,640

		texture "data/gfx/ui/story/story_background.png"
	}

	widget EffectEmitter lightning_orb
	{
		mins 400, 83
	
		effectName "HUD_lightning_orb_big_01"
		StartOn
	}
	
	widget Label LevelName
	{
		EventToPopulateFrom "UIDisplayLevelName"
		
		mins 80, 125
		size 640, 30
		
		text "Level Name"

		textAlignment "center"
		textVerticalAlignment "center"
		style "BannerTextClassic"
	}

	widget Label StageNumber
	{
		EventToPopulateFrom "UIDisplayStage"
		
		mins 80, 150
		size 640, 30
		
		text "Stage 3-7"

		textAlignment "center"
		textVerticalAlignment "center"
		style "RankText"
	}
	
	///////////////////////////////////////////////////////////////////////////////

	widget Label CoinsDesc
	{
		mins 170, 180
		size 210, 30
		
		text "#CoinsCollected"

		textAlignment "left"
		textVerticalAlignment "center"
		style "Gold24Text"
		
		hidden
	}

	widget Label CoinsTotal
	{
		EventToPopulateFrom "UISetCoinsValue"
	
		mins 380, 180
		size 50, 30

		textAlignment "right"
		textVerticalAlignment "center"
		style "EOLGreenText"
		
		hidden
	}
	
	widget Label PointsPerCoin
	{
		EventToPopulateFrom "UISetCoinsPointsPer"
	
		mins 430, 180
		size 90, 30

		textAlignment "left"
		textVerticalAlignment "center"
		style "EOLGreenText"
		
		hidden
	}

	widget Label CoinPoints
	{
		EventToPopulateFrom "UISetCoinsScore"
	
		mins 520, 180
		size 110, 30
		
		textAlignment "right"
		textVerticalAlignment "center"
		style "Gold24Text"
		
		hidden
	}

	///////////////////////////////////////////////////////////////////////////////

	widget Label TreasuresDesc
	{
		mins 170, 200
		size 210, 30
		
		text "#TreasuresCollected"

		textAlignment "left"
		textVerticalAlignment "center"
		style "Gold24Text"
		
		hidden
	}

	widget Label TreasuresTotal
	{
		EventToPopulateFrom "UISetTreasuresValue"
	
		mins 450, 200
		size 70, 30

		textAlignment "left"
		textVerticalAlignment "center"
		style "EOLGreenText"
		
		hidden
	}


	widget Label TreasurePoints
	{
		EventToPopulateFrom "UISetTreasuresScore"
	
		mins 520, 200
		size 110, 30
		
		textAlignment "right"
		textVerticalAlignment "center"
		style "Gold24Text"
		
		hidden
	}

	///////////////////////////////////////////////////////////////////////////////

	widget Label AccuracyDesc
	{
		mins 170, 220
		size 210, 30
		
		text "#AccuracyBonus"

		textAlignment "left"
		textVerticalAlignment "center"
		style "Gold24Text"
		
		hidden
	}

	widget Label AccuracyValue
	{
		EventToPopulateFrom "UISetAccuracyValue"
	
		mins 380, 220
		size 50, 30
		
		textAlignment "right"
		textVerticalAlignment "center"
		style "EOLGreenText"
		
		hidden
	}
	
	widget Label PointsPerAccuracyPercent
	{
		EventToPopulateFrom "UISetAccuracyPointsPer"
	
		mins 430, 220
		size 90, 30
		
		textAlignment "left"
		textVerticalAlignment "center"
		style "EOLGreenText"
		
		hidden
	}	
	widget Label AccuracyPoints
	{
		EventToPopulateFrom "UISetAccuracyScore"
	
		mins 520, 220
		size 110, 30

		textAlignment "right"
		textVerticalAlignment "center"
		style "Gold24Text"
		
		hidden
	}
	
	///////////////////////////////////////////////////////////////////////////////

	widget Label ComboDesc
	{
		mins 170, 240
		size 210, 30
		
		text "#MaxComboBonus"

		textAlignment "left"
		textVerticalAlignment "center"
		style "Gold24Text"
		
		hidden
	}

	widget Label ComboTotal
	{
		EventToPopulateFrom "UISetCombosValue"
	
		mins 380, 240
		size 50, 30
		
		textAlignment "right"
		textVerticalAlignment "center"
		style "EOLGreenText"
		
		hidden
	}
	
	widget Label PointsPerCombo
	{
		EventToPopulateFrom "UISetCombosPointsPer"

		mins 430, 240
		size 90, 30

		textAlignment "left"
		textVerticalAlignment "center"
		style "EOLGreenText"
		
		hidden
	}

	widget Label ComboPoints
	{
		EventToPopulateFrom "UISetCombosScore"

		mins 520, 240
		size 110, 30
		
		textAlignment "right"
		textVerticalAlignment "center"
		style "Gold24Text"
		
		hidden
	}
	
	///////////////////////////////////////////////////////////////////////////////

	widget Label ChainDesc
	{
		mins 170, 260
		size 210, 30
		
		text "#MaxChainBonus"

		textAlignment "left"
		textVerticalAlignment "center"
		style "Gold24Text"
		
		hidden
	}

	widget Label ChainTotal
	{
		EventToPopulateFrom "UISetChainsValue"

		mins 380, 260
		size 50, 30

		textAlignment "right"
		textVerticalAlignment "center"
		style "EOLGreenText"
		
		hidden
	}
	
	widget Label PointsPerChain
	{
		EventToPopulateFrom "UISetChainsPointsPer"

		mins 430, 260
		size 90, 30
		
		textAlignment "left"
		textVerticalAlignment "center"
		style "EOLGreenText"
		
		hidden
	}

	widget Label ChainPoints
	{
		EventToPopulateFrom "UISetChainsScore"

		mins 520, 260
		size 110, 30

		textAlignment "right"
		textVerticalAlignment "center"
		style "Gold24Text"
		
		hidden
	}


	///////////////////////////////////////////////////////////////////////////////

	widget Label GoldenScarabDesc
	{
		mins 170, 280
		size 210, 30
		
		text "#GoldenScarabsBroken"

		textAlignment "left"
		textVerticalAlignment "center"
		style "Gold24Text"
		
		hidden
	}

	widget Label GoldenScarabTotal
	{
		EventToPopulateFrom "UISetScarabsValue"

		mins 380, 280
		size 50, 30
		
		textAlignment "right"
		textVerticalAlignment "center"
		style "EOLGreenText"
		
		hidden
	}
	
	widget Label PointsPerGoldenScarab
	{
		EventToPopulateFrom "UISetScarabsPointsPer"

		mins 430, 280
		size 90, 30
		
		textAlignment "left"
		textVerticalAlignment "center"
		style "EOLGreenText"
		
		hidden
	}

	widget Label GoldenScarabPoints
	{
		EventToPopulateFrom "UISetScarabsScore"

		mins 520, 280
		size 110, 30
		
		textAlignment "right"
		textVerticalAlignment "center"
		style "Gold24Text"
		
		hidden
	}

	///////////////////////////////////////////////////////////////////////////////

	widget Label BallsDestroyedDesc
	{
		mins 170, 300
		size 210, 30
		
		text "#SpheresDestroyed"

		textAlignment "left"
		textVerticalAlignment "center"
		style "Gold24Text"
		
		hidden
	}

	widget Label BallsDestroyedTotal
	{
		EventToPopulateFrom "UISetBallsValue"

		mins 450, 300
		size 70, 30
		
		textAlignment "left"
		textVerticalAlignment "center"
		style "EOLGreenText"
		
		hidden
	}

	widget Label BallsDestroyedPoints
	{
		EventToPopulateFrom "UISetBallsScore"

		mins 520, 300
		size 110, 30
		
		textAlignment "right"
		textVerticalAlignment "center"
		style "Gold24Text"
		
		hidden
	}

	///////////////////////////////////////////////////////////////////////////////
	
	widget Label JarDesc
	{
		EventToPopulateFrom "UISetJarsDesc"

		mins 170, 320
		size 210, 30
		
		text " "

		textAlignment "left"
		textVerticalAlignment "center"
		style "Gold24Text"
		
		hidden
	}

	widget Label GotAllJars
	{
		EventToPopulateFrom "UISetGotAllJars"

		mins 170, 320
		size 460, 30
		
		textAlignment "center"
		textVerticalAlignment "center"
		style "HelpTextRed22"
		
		hidden
	}

	widget Label TotalJars
	{
		EventToPopulateFrom "UISetTotalJars"

		mins 520, 320
		size 110, 30
		
		textAlignment "right"
		textVerticalAlignment "center"
		style "Gold24Text"
		
		hidden
	}
	
	///////////////////////////////////////////////////////////////////////////////

	widget Label LevelTotalDesc
	{
		mins 260, 350
		size 170, 30
		
		text "#LevelScore"

		textAlignment "left"
		textVerticalAlignment "center"
		style "Gold28Text"
		
		hidden
	}

	widget Label LevelTotalPoints
	{
		EventToPopulateFrom "UISetLevelScore"

		mins 430, 350
		size 110, 30
		
		textAlignment "right"
		textVerticalAlignment "center"
		style "Gold28Text"
		
		hidden
	}

	///////////////////////////////////////////////////////////////////////////////

	widget Label TotalScore
	{
		EventToPopulateFrom "UISetTotalScore"

		mins 220, 385
		size 360, 30
		
		textAlignment "center"
		textVerticalAlignment "center"
		style "DarkGold28Text"
		
		hidden
	}
	
	widget Label TotalCoins
	{
		EventToPopulateFrom "UISetTotalCoins"

		mins 220, 410
		size 360, 30

		textAlignment "center"
		textVerticalAlignment "center"
		style "DarkGold28Text"
		
		hidden
	}
	
	

	///////////////////////////////////////////////////////////////////////////////
	
	widget Button GoToMainMenu
	{
		onaction enter "endgame"
	
		mins 224, 525
		size 115, 26
		
		text "#Menu"
		textAlignment "center"
		textVerticalAlignment "center"

		style "Luxor2Style03"
	}

	widget Button GoToStore
	{
		onaction enter "event RequestingStoreFromEndOfLevelBreakdown; SetScreenInAnim Store In; GotoScreenNoOuts Store DoorTransition"
	
		mins 336, 475
		size 128, 26	
		
		text "#Store"
		textAlignment "center"
		textVerticalAlignment "center"

		style "Luxor2Style03"
	}
	
	widget Button Continue
	{
		onaction enter "nextlevel"
	
		mins 452, 525
		size 115, 26
		
		text "#Continue"
		textAlignment "center"
		textVerticalAlignment "center"

		style "Luxor2Style03"
		
		EventToExecuteActionOn "EscapeAdventureClassic"
	}
	
	widget Button ShowNewUnlock
	{
		disabled
		
		onaction enter "pushdialog NewUnlock; event UIHideNewItemsUnlocked"
		
		eventToenableOn "UIShowNewItemsUnlocked"
		eventToDisableOn "UIHideNewItemsUnlocked"

		mins -1, -1
		size 1, 1
		text ""

		EventToExecuteActionOn "DisplayNewUnlockDialog" 
	}

	///////////////////////////////////////////////////////////////////////////////
	///////////////////////////////////////////////////////////////////////////////

	animation In
	{
		animHandoffTime 0
		
		init widget "CoinsDesc" hide
		init widget "CoinsTotal" hide
		init widget "PointsPerCoin" hide
		init widget "CoinPoints" hide
		init widget "TreasuresDesc" hide
		init widget "TreasuresTotal" hide
		init widget "TreasurePoints" hide
		init widget "AccuracyDesc" hide
		init widget "AccuracyValue" hide
		init widget "PointsPerAccuracyPercent" hide
		init widget "AccuracyPoints" hide
		init widget "ComboDesc" hide
		init widget "ComboTotal" hide
		init widget "PointsPerCombo" hide
		init widget "ComboPoints" hide
		init widget "ChainDesc" hide
		init widget "ChainTotal" hide
		init widget "PointsPerChain" hide
		init widget "ChainPoints" hide
		init widget "GoldenScarabDesc" hide
		init widget "GoldenScarabTotal" hide
		init widget "PointsPerGoldenScarab" hide
		init widget "GoldenScarabPoints" hide
		init widget "BallsDestroyedDesc" hide
		init widget "BallsDestroyedTotal" hide
		init widget "BallsDestroyedPoints" hide
		init widget "JarDesc" hide
		init widget "GotAllJars" hide
		init widget "TotalJars" hide
		init widget "LevelTotalDesc" hide
		init widget "LevelTotalPoints" hide
//		init widget "GameSoFarDesc" hide
//		init widget "GameSoFarPoints" hide
		init widget "TotalScore" hide
		init widget "TotalCoins" hide
		
		init screen					color=( 255,255,255,0 )
		
		at 0 ms colorScreen			from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 300 ms speed=Cosine
	
		at 500 ms consoleCommand "event PlaySound CollideSpheresShotHit"
		at 600 ms consoleCommand "event PlaySound CollideSpheresShotHit"
		at 700 ms consoleCommand "event PlaySound CollideSpheresShotHit"
		at 800 ms consoleCommand "event PlaySound CollideSpheresShotHit"
		at 900 ms consoleCommand "event PlaySound CollideSpheresShotHit"
		at 1000 ms consoleCommand "event PlaySound CollideSpheresShotHit"
		at 1100 ms consoleCommand "event PlaySound CollideSpheresShotHit"
		at 1200 ms consoleCommand "event PlaySound CollideSpheresShotHit"

		at 1300 ms consoleCommand "event PlaySound CollideSpheresShotHit"
		at 1300 ms consoleCommand "event TallyLevelScore"

		at 1300 ms consoleCommand "event PlaySound CatchCoin"
		at 1350 ms consoleCommand "event PlaySound CatchCoin"
		at 1400 ms consoleCommand "event PlaySound CatchCoin"
		at 1450 ms consoleCommand "event PlaySound CatchCoin"
		at 1500 ms consoleCommand "event PlaySound CatchCoin"
		at 1550 ms consoleCommand "event PlaySound CatchCoin"
		at 1600 ms consoleCommand "event PlaySound CatchCoin"
		at 1650 ms consoleCommand "event PlaySound CatchCoin"

		at 1800 ms consoleCommand "event PlaySound CollideSpheresShotHit"
		at 1800 ms consoleCommand "event TallyTotalScore"

		at 1800 ms consoleCommand "event PlaySound CatchCoin"
		at 1850 ms consoleCommand "event PlaySound CatchCoin"
		at 1900 ms consoleCommand "event PlaySound CatchCoin"
		at 1950 ms consoleCommand "event PlaySound CatchCoin"
		at 2000 ms consoleCommand "event PlaySound CatchCoin"
		at 2050 ms consoleCommand "event PlaySound CatchCoin"
		at 2100 ms consoleCommand "event PlaySound CatchCoin"
		at 2150 ms consoleCommand "event PlaySound CatchCoin"
		
		at 2300 ms consoleCommand "event PlaySound CollideSpheresShotHit"
		
		at 2800 ms consoleCommand "event DisplayNewUnlockDialog"
		

		///////////////////////////////////////////////////////////////////////////////

		at 500 ms showWidget "CoinsDesc"
		at 500 ms showWidget "CoinsTotal"
		at 500 ms showWidget "PointsPerCoin"
		at 500 ms showWidget "CoinPoints"
		
		at 600 ms showWidget "TreasuresDesc"
		at 600 ms showWidget "TreasuresTotal"
		at 600 ms showWidget "TreasurePoints"

		at 700 ms showWidget "AccuracyDesc"
		at 700 ms showWidget "AccuracyValue"
		at 700 ms showWidget "PointsPerAccuracyPercent"
		at 700 ms showWidget "AccuracyPoints"
		
		at 800 ms showWidget "ComboDesc"
		at 800 ms showWidget "ComboTotal"
		at 800 ms showWidget "PointsPerCombo"
		at 800 ms showWidget "ComboPoints"
		
		at 900 ms showWidget "ChainDesc"
		at 900 ms showWidget "ChainTotal"
		at 900 ms showWidget "PointsPerChain"
		at 900 ms showWidget "ChainPoints"
		
		at 1000 ms showWidget "GoldenScarabDesc"
		at 1000 ms showWidget "GoldenScarabTotal"
		at 1000 ms showWidget "PointsPerGoldenScarab"
		at 1000 ms showWidget "GoldenScarabPoints"
		
		at 1100 ms showWidget "BallsDestroyedDesc"
		at 1100 ms showWidget "BallsDestroyedTotal"
		at 1100 ms showWidget "BallsDestroyedPoints"
		
		at 1200 ms showWidget "JarDesc"
		at 1200 ms showWidget "GotAllJars"
		at 1200 ms showWidget "TotalJars"
		
		at 1300 ms showWidget "LevelTotalDesc"
		at 1300 ms showWidget "LevelTotalPoints"
		
		at 1800 ms showWidget "TotalScore"
		
		at 2300 ms showWidget "TotalCoins"
	
		
		
	}
	
	animation Out
	{
		init screen					color=( 255,255,255,255 )
		at 0 ms colorScreen			from ( 255,255,255,255 ) to ( 255,255,255,0 ) over 300 ms speed=Cosine
	}
}