screen GameWon
{
	defaultWidget "ReturnToMainMenu"

	widget Button ReturnToMainMenu
	{
		onaction enter "Endgame" //"SetScreenInAnim MainMenu In_Up; GoToScreenNoOuts MainMenu DoorTransition"

		mins 128, 520
		size 128, 26

		text "#MainMenu"
		style "Luxor2Style03"
	}

	widget Button NewGame
	{
		onaction enter "popdialog; pushdialog difficultyAdventure"

		mins 534, 520
		size 166, 26

		text "#StartOver"
		style "Luxor2Style03"
	}
	
	animation In
	{
		init screen color=(255,255,255,0)
		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 colorScreen from (255,255,255,255) to (255,255,255,0) over 300ms speed=Cosine
	}
}

screen EndGameDialog
{
	onaction escape ""
	
	widget Button Background
	{
		mins 80, 0
		size 640, 600

		texture "data/gfx/ui/story/story_background"
	}
	
	widget Label StageLabel
	{
		mins 316, 125
		size 168, 38
		text "#GameWonLabel"
		textAlignment "center"
		style "BannerText02"
	}

	widget Label StoryText
	{
		mins 170, 200
		size 450, 300
		
		text "#StoryGameWon"
		textAlignment "left"
		textVerticalAlignment "top"
		wordWrap
		style "DisplayText"
	}
	
	widget Button Ok
	{
		onaction enter "PopDialog; PushDialog GameWon"

		mins 368, 480
		size 64, 26

		text "OK"
		textAlignment "center"
		style "Luxor2Style03"
	}
	
	animation In
	{
		init screen color=(255,255,255,0)
		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 colorScreen from (255,255,255,255) to (255,255,255,0) over 300ms speed=Cosine
	}
}

screen WonPuzzle
{
	defaultWidget "ReturnToMainMenu"

	widget Button Background
	{
		mins 0,0
		size 800,600

		texture "data/gfx/ui/Instructions_background"
	}
	
 
	widget Button Backgroundborder
	{
		mins 80, 10
		size 640, 600

		texture "data/gfx/ui/story/story_background"
	}	
		
	widget EffectEmitter lightning_orb
	{
		mins 400, 83
	
		effectName "HUD_lightning_orb_big_01"
		StartOn
	}	

	widget Label BkgGraphic
	{
		mins 152, 130
		size 488, 366

		texture "data/gfx/ui/sphinx_Won.png"
	}
	
	widget Label WonPuzzleLabel
	{
		mins 200, 430
		size 400, 60
		text "#WonPuzzleCampaign"
		textAlignment "center"
		wordwrap
		style "Gold24Text"
	}

	widget Button ReturnToMainMenu
	{
		onaction enter "Endgame" // "SetScreenInAnim MainMenu In_Up; GotoScreenNoOuts MainMenu DoorTransition"

		mins 335, 539
		size 128, 26

		text "#MainMenu"
		style "Luxor2Style03"
		textAlignment "center"
		textVerticalAlignment "Center"
		
	}
		
	widget effectemitter levelend
	{
		mins 0, 0
	
		effectName "end_level_01"
		StartOn
	}
}