//// NOTE: the events "ShowStageN" are called on loading the game to set the pyramid's start visualization to be whatever they need to be
////	   (likewise for when you un-hover-over "start new game" that gets fired)
//// To fire events for particles or whatever while the pyramid is growing put in console commands in the InShowStageN animations 

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

		texture "data/gfx/ui/pyramid_progression/Pyramid_progression_bg"
	}

	widget EffectEmitter bg_effects
	{
		mins 0, 0
	
		effectName "pyramid_background_01"
		StartOn
	}

// =========================== STAGE 0 ==================================
	
	widget Button Stage0
	{
		eventToHideOn "ShowStage1"
		eventToHideOn "ShowStage2"
		eventToHideOn "ShowStage3"
		eventToHideOn "ShowStage4"
		eventToHideOn "ShowStage5"
		eventToHideOn "ShowStage6"
		eventToHideOn "ShowStage7"
		eventToHideOn "ShowStage8"
		eventToHideOn "ShowStage9"
		eventToHideOn "ShowStage10"
		eventToHideOn "ShowStage11"
		
		eventToShowOn "ResetPyramid"
		
		mins 0, 333
		size 800, 280

		texture "data/gfx/ui/pyramid_progression/Pyramid_Level_01"
	}

// =========================== STAGE 1 ==================================
	
	widget Button Stage1
	{
		hidden
		
		eventToHideOn "ResetPyramid"
		eventToShowOn "ShowStage1"
		
		mins 0, 282
		size 800, 331

		texture "data/gfx/ui/pyramid_progression/Pyramid_Level_02"
	}
	
	widget EffectEmitter Stage1Effect
	{
		mins 0, 0


		effectName "Pyramid_Rise_01"				
		EventToStartEffectsOn "ShowStage1Effect"
	}
	
	widget EffectEmitter Stage1StarOffEffect
	{
		mins 65, 314


		effectName "Pyramid_Star_Base"	
		
		EventToStartEffectsOn "ShowStage0"			
		EventToStartEffectsOn "ResetPyramid"
		EventToStopEffectsOn "ShowStage1"
		EventToStopEffectsOn "ShowStage2"
		EventToStopEffectsOn "ShowStage3"
		EventToStopEffectsOn "ShowStage4"
		EventToStopEffectsOn "ShowStage5"
		EventToStopEffectsOn "ShowStage6"
		EventToStopEffectsOn `"ShowStage7"
		EventToStopEffectsOn "ShowStage8"
		EventToStopEffectsOn "ShowStage9"
		EventToStopEffectsOn "ShowStage10"
		EventToStopEffectsOn "ShowStage11"
	}
	
	widget EffectEmitter Stage1StarEffect
	{
		mins 65, 314


		effectName "Pyramid_Star_Geb"	
					
		EventToStartEffectsOn "ShowStage1"
		EventToStartEffectsOn "ShowStage2"
		EventToStartEffectsOn "ShowStage3"
		EventToStartEffectsOn "ShowStage4"
		EventToStartEffectsOn "ShowStage5"
		EventToStartEffectsOn "ShowStage6"
		EventToStartEffectsOn "ShowStage7"
		EventToStartEffectsOn "ShowStage8"
		EventToStartEffectsOn "ShowStage9"
		EventToStartEffectsOn "ShowStage10"
		EventToStartEffectsOn "ShowStage11"
		EventToStartEffectsOn "ShowStage1StarEffect"
		EventToKillEffectsOn "ResetPyramid"
	}

// =========================== STAGE 2 ==================================
	
	widget Button Stage2
	{
		hidden
		
		eventToHideOn "ResetPyramid"
		eventToShowOn "ShowStage2"
		
		mins 0, 275
		size 800, 338

		texture "data/gfx/ui/pyramid_progression/Pyramid_Level_03"
	}
	
	widget EffectEmitter Stage2Effect
	{
		mins 0, 0


		effectName "Pyramid_Rise_02"				
		EventToStartEffectsOn "ShowStage2Effect"
	}
	
	widget EffectEmitter Stage2StarOffEffect
	{
		mins 730, 296


		effectName "Pyramid_Star_Base"
		
		EventToStartEffectsOn "ShowStage0"				
		EventToStartEffectsOn "ResetPyramid"
		EventToStopEffectsOn "ShowStage2"
		EventToStopEffectsOn "ShowStage3"
		EventToStopEffectsOn "ShowStage4"
		EventToStopEffectsOn "ShowStage5"
		EventToStopEffectsOn "ShowStage6"
		EventToStopEffectsOn "ShowStage7"
		EventToStopEffectsOn "ShowStage8"
		EventToStopEffectsOn "ShowStage9"
		EventToStopEffectsOn "ShowStage10"
		EventToStopEffectsOn "ShowStage11"
	}
	
	widget EffectEmitter Stage2StarEffect
	{
		mins 730, 296


		effectName "Pyramid_Star_Nut"
						
		EventToStartEffectsOn "ShowStage2"
		EventToStartEffectsOn "ShowStage3"
		EventToStartEffectsOn "ShowStage4"
		EventToStartEffectsOn "ShowStage5"
		EventToStartEffectsOn "ShowStage6"
		EventToStartEffectsOn "ShowStage7"
		EventToStartEffectsOn "ShowStage8"
		EventToStartEffectsOn "ShowStage9"
		EventToStartEffectsOn "ShowStage10"
		EventToStartEffectsOn "ShowStage11"
		EventToStartEffectsOn "ShowStage2StarEffect"
		EventToKillEffectsOn "ResetPyramid"
	}

// =========================== STAGE 3 ==================================
	
	widget Button Stage3
	{
		hidden
		
		eventToHideOn "ResetPyramid"
		eventToShowOn "ShowStage3"
		
		mins 0, 273
		size 800, 340

		texture "data/gfx/ui/pyramid_progression/Pyramid_Level_04"
	}
	
	widget EffectEmitter Stage3Effect
	{
		mins 0, 0


		effectName "Pyramid_Rise_02"				
		EventToStartEffectsOn "ShowStage3Effect"
	}
	
	widget EffectEmitter Stage3StarOffEffect
	{
		mins 120, 273


		effectName "Pyramid_Star_Base"	
					
		EventToStartEffectsOn "ShowStage0"
		EventToStartEffectsOn "ResetPyramid"
		EventToStopEffectsOn "ShowStage3"
		EventToStopEffectsOn "ShowStage4"
		EventToStopEffectsOn "ShowStage5"
		EventToStopEffectsOn "ShowStage6"
		EventToStopEffectsOn "ShowStage7"
		EventToStopEffectsOn "ShowStage8"
		EventToStopEffectsOn "ShowStage9"
		EventToStopEffectsOn "ShowStage10"
		EventToStopEffectsOn "ShowStage11"
	}
	
	widget EffectEmitter Stage3StarEffect
	{
		mins 120, 273


		effectName "Pyramid_Star_Horus"	
					
		EventToStartEffectsOn "ShowStage3"
		EventToStartEffectsOn "ShowStage4"
		EventToStartEffectsOn "ShowStage5"
		EventToStartEffectsOn "ShowStage6"
		EventToStartEffectsOn "ShowStage7"
		EventToStartEffectsOn "ShowStage8"
		EventToStartEffectsOn "ShowStage9"
		EventToStartEffectsOn "ShowStage10"
		EventToStartEffectsOn "ShowStage11"
		EventToStartEffectsOn "ShowStage3StarEffect"
		EventToKillEffectsOn "ResetPyramid"
	}

// =========================== STAGE 4 ==================================
	
	widget Button Stage4
	{
		hidden
		
		eventToHideOn "ResetPyramid"
		eventToShowOn "ShowStage4"
		
		mins 0, 237
		size 800, 376

		texture "data/gfx/ui/pyramid_progression/Pyramid_Level_05"
	}
	
	widget EffectEmitter Stage4Effect
	{
		mins 0, 0


		effectName "Pyramid_Rise_03"				
		EventToStartEffectsOn "ShowStage4Effect"
	}
	
	widget EffectEmitter Stage4StarOffEffect
	{
		mins 684, 256


		effectName "Pyramid_Star_Base"	
					
		EventToStartEffectsOn "ShowStage0"
		EventToStartEffectsOn "ResetPyramid"
		EventToStopEffectsOn "ShowStage4"
		EventToStopEffectsOn "ShowStage5"
		EventToStopEffectsOn "ShowStage6"
		EventToStopEffectsOn "ShowStage7"
		EventToStopEffectsOn "ShowStage8"
		EventToStopEffectsOn "ShowStage9"
		EventToStopEffectsOn "ShowStage10"
		EventToStopEffectsOn "ShowStage11"
	}
	
	widget EffectEmitter Stage4StarEffect
	{
		mins 684, 256


		effectName "Pyramid_Star_Ra"
						
		EventToStartEffectsOn "ShowStage4"
		EventToStartEffectsOn "ShowStage5"
		EventToStartEffectsOn "ShowStage6"
		EventToStartEffectsOn "ShowStage7"
		EventToStartEffectsOn "ShowStage8"
		EventToStartEffectsOn "ShowStage9"
		EventToStartEffectsOn "ShowStage10"
		EventToStartEffectsOn "ShowStage11"
		EventToStartEffectsOn "ShowStage4StarEffect"
		EventToKillEffectsOn "ResetPyramid"
	}

// =========================== STAGE 5 ==================================
	
	widget Button Stage5
	{
		hidden
		
		eventToHideOn "ResetPyramid"
		eventToShowOn "ShowStage5"
		
		mins 0, 218
		size 800, 395

		texture "data/gfx/ui/pyramid_progression/Pyramid_Level_06"
	}
	
	widget EffectEmitter Stage5Effect
	{
		mins 0, 0


		effectName "Pyramid_Rise_03"				
		EventToStartEffectsOn "ShowStage5Effect"
	}
	
	widget EffectEmitter Stage5StarOffEffect
	{
		mins 181, 224


		effectName "Pyramid_Star_Base"	
					
		EventToStartEffectsOn "ShowStage0"
		EventToStartEffectsOn "ResetPyramid"
		EventToStopEffectsOn "ShowStage5"
		EventToStopEffectsOn "ShowStage6"
		EventToStopEffectsOn "ShowStage7"
		EventToStopEffectsOn "ShowStage8"
		EventToStopEffectsOn "ShowStage9"
		EventToStopEffectsOn "ShowStage10"
		EventToStopEffectsOn "ShowStage11"
	}
	
	widget EffectEmitter Stage5StarEffect
	{
		mins 181, 224


		effectName "Pyramid_Star_Isis"	
					
		EventToStartEffectsOn "ShowStage5"
		EventToStartEffectsOn "ShowStage6"
		EventToStartEffectsOn "ShowStage7"
		EventToStartEffectsOn "ShowStage8"
		EventToStartEffectsOn "ShowStage9"
		EventToStartEffectsOn "ShowStage10"
		EventToStartEffectsOn "ShowStage11"
		EventToStartEffectsOn "ShowStage5StarEffect"
		EventToKillEffectsOn "ResetPyramid"
	}

// =========================== STAGE 6 ==================================
	
	widget Button Stage6
	{
		hidden
		
		eventToHideOn "ResetPyramid"
		eventToShowOn "ShowStage6"
		
		mins 0, 182
		size 800, 431

		texture "data/gfx/ui/pyramid_progression/Pyramid_Level_07"
	}
	
	widget EffectEmitter Stage6Effect
	{
		mins 0, 0


		effectName "Pyramid_Rise_04"				
		EventToStartEffectsOn "ShowStage6Effect"
	}
	
	widget EffectEmitter Stage6StarOffEffect
	{
		mins 638, 214


		effectName "Pyramid_Star_Base"	
					
		EventToStartEffectsOn "ShowStage0"
		EventToStartEffectsOn "ResetPyramid"
		EventToStopEffectsOn "ShowStage6"
		EventToStopEffectsOn "ShowStage7"
		EventToStopEffectsOn "ShowStage8"
		EventToStopEffectsOn "ShowStage9"
		EventToStopEffectsOn "ShowStage10"
		EventToStopEffectsOn "ShowStage11"
	}
	
	widget EffectEmitter Stage6StarEffect
	{
		mins 638, 214


		effectName "Pyramid_Star_Osiris"
						
		EventToStartEffectsOn "ShowStage6"
		EventToStartEffectsOn "ShowStage7"
		EventToStartEffectsOn "ShowStage8"
		EventToStartEffectsOn "ShowStage9"
		EventToStartEffectsOn "ShowStage10"
		EventToStartEffectsOn "ShowStage11"
		EventToStartEffectsOn "ShowStage6StarEffect"
		EventToKillEffectsOn "ResetPyramid"
	}

// =========================== STAGE 7 ==================================
	
	widget Button Stage7
	{
		hidden
		
		eventToHideOn "ResetPyramid"
		eventToShowOn "ShowStage7"
		
		mins 0, 163
		size 800, 450

		texture "data/gfx/ui/pyramid_progression/Pyramid_Level_08"
	}
	
	widget EffectEmitter Stage7Effect
	{
		mins 0, 0


		effectName "Pyramid_Rise_04"				
		EventToStartEffectsOn "ShowStage7Effect"
	}
	
	widget EffectEmitter Stage7StarOffEffect
	{
		mins 235, 178


		effectName "Pyramid_Star_Base"
						
		EventToStartEffectsOn "ShowStage0"
		EventToStartEffectsOn "ResetPyramid"
		EventToStopEffectsOn "ShowStage7"
		EventToStopEffectsOn "ShowStage8"
		EventToStopEffectsOn "ShowStage9"
		EventToStopEffectsOn "ShowStage10"
		EventToStopEffectsOn "ShowStage11"
	}
	
	widget EffectEmitter Stage7StarEffect
	{
		mins 235, 178


		effectName "Pyramid_Star_Apep"	
					
		EventToStartEffectsOn "ShowStage7"
		EventToStartEffectsOn "ShowStage8"
		EventToStartEffectsOn "ShowStage9"
		EventToStartEffectsOn "ShowStage10"
		EventToStartEffectsOn "ShowStage11"
		EventToStartEffectsOn "ShowStage7StarEffect"
		EventToKillEffectsOn "ResetPyramid"
	}

// =========================== STAGE 8 ==================================
	
	widget Button Stage8
	{
		hidden
		
		eventToHideOn "ResetPyramid"
		eventToShowOn "ShowStage8"
		
		mins 0, 144
		size 800, 469
		texture "data/gfx/ui/pyramid_progression/Pyramid_Level_09"

	}
	
	widget EffectEmitter Stage8Effect
	{
		mins 0, 0


		effectName "Pyramid_Rise_05"				
		EventToStartEffectsOn "ShowStage8Effect"
	}
	
	widget EffectEmitter Stage8StarOffEffect
	{
		mins 582, 160


		effectName "Pyramid_Star_Base"	
					
		EventToStartEffectsOn "ShowStage0"
		EventToStartEffectsOn "ResetPyramid"
		EventToStopEffectsOn "ShowStage8"
		EventToStopEffectsOn "ShowStage9"
		EventToStopEffectsOn "ShowStage10"
		EventToStopEffectsOn "ShowStage11"
	}
	
	widget EffectEmitter Stage8StarEffect
	{
		mins 582, 160


		effectName "Pyramid_Star_Thoth"	
					
		EventToStartEffectsOn "ShowStage8"
		EventToStartEffectsOn "ShowStage9"
		EventToStartEffectsOn "ShowStage10"
		EventToStartEffectsOn "ShowStage11"
		EventToStartEffectsOn "ShowStage8StarEffect"
		EventToKillEffectsOn "ResetPyramid"
	}

// =========================== STAGE 9 ==================================
	
	widget Button Stage9
	{
		hidden
		
		eventToHideOn "ResetPyramid"
		eventToShowOn "ShowStage9"
		
		mins 0, 139
		size 800, 474

		texture "data/gfx/ui/pyramid_progression/Pyramid_Level_10"
	}
	
	widget EffectEmitter Stage9Effect
	{
		mins 0, 0


		effectName "Pyramid_Rise_05"				
		EventToStartEffectsOn "ShowStage9Effect"
	}
	
	widget EffectEmitter Stage9StarOffEffect
	{
		mins 299, 131


		effectName "Pyramid_Star_Base"	
					
		EventToStartEffectsOn "ShowStage0"
		EventToStartEffectsOn "ResetPyramid"
		EventToStopEffectsOn "ShowStage9"
		EventToStopEffectsOn "ShowStage10"
		EventToStopEffectsOn "ShowStage11"
	}
	
	widget EffectEmitter Stage9StarEffect
	{
		mins 299, 131


		effectName "Pyramid_Star_Anubis"	
					
		EventToStartEffectsOn "ShowStage9"
		EventToStartEffectsOn "ShowStage10"
		EventToStartEffectsOn "ShowStage11"
		EventToStartEffectsOn "ShowStage9StarEffect"
		EventToKillEffectsOn "ResetPyramid"
	}

// =========================== STAGE 10 ==================================
	
	widget Button Stage10
	{
		hidden
		
		eventToHideOn "ResetPyramid"
		eventToShowOn "ShowStage10"
		
		mins 0, 115
		size 800, 498

		texture "data/gfx/ui/pyramid_progression/Pyramid_Level_11"
	}
	
	widget EffectEmitter Stage10Effect
	{
		mins 0, 0


		effectName "Pyramid_Rise_06"				
		EventToStartEffectsOn "ShowStage10Effect"
	}
	
	widget EffectEmitter Stage10StarOffEffect
	{
		mins 506, 106


		effectName "Pyramid_Star_Base"	
					
		EventToStartEffectsOn "ShowStage0"
		EventToStartEffectsOn "ResetPyramid"
		EventToStopEffectsOn "ShowStage10"
		EventToStopEffectsOn "ShowStage11"
	}
	
	widget EffectEmitter Stage10StarEffect
	{
		mins 506, 106


		effectName "Pyramid_Star_Sekhmet"	
					
		EventToStartEffectsOn "ShowStage10"
		EventToStartEffectsOn "ShowStage11"
		EventToStartEffectsOn "ShowStage10StarEffect"
		EventToKillEffectsOn "ResetPyramid"
	}

// =========================== STAGE 11 ==================================
	
	widget Button Stage11
	{
		hidden
		
		eventToHideOn "ResetPyramid"
		eventToShowOn "ShowStage11"
		
		mins 0, 80
		size 800, 533

		texture "data/gfx/ui/pyramid_progression/Pyramid_Level_12"
	}
	
	widget EffectEmitter Stage11Effect
	{
		mins 0, 0


		effectName "Pyramid_Rise_06"				
		EventToStartEffectsOn "ShowStage11Effect"
	}
	
	widget EffectEmitter Stage11StarOffEffect
	{
		mins 354, 87


		effectName "Pyramid_Star_Base"	
					
		EventToStartEffectsOn "ShowStage0"
		EventToStartEffectsOn "ResetPyramid"
		EventToStopEffectsOn "ShowStage11"
	}
	
	widget EffectEmitter Stage11StarEffect
	{
		mins 354, 87


		effectName "Pyramid_Star_Set"		
				
		EventToStartEffectsOn "ShowStage11"
		EventToStartEffectsOn "ShowStage11StarEffect"
		EventToKillEffectsOn "ResetPyramid"
	}

// =========================== STAGE FINAL ?? ==================================
	
	widget EffectEmitter topeffect
	{
		mins 401, 84


		effectName "Pyramid_Final"
		
		EventToStartEffectsOn "UIShowTopPyramidEffect"
		
		EventToStartEffectsOn "ShowStage11"
		EventToStopEffectsOn "ResetPyramid"
	}

// =========================== OTHER STUFF ==================================
	
		
	animation InShowStage1
	{
		init screen						position=relative ( 0,0 )		
		init widget "Stage0"			show
		init widget "Stage1"			show
		init widget "Stage1"		color=( 255, 255, 255, 0 )
		
		at 0 ms consoleCommand			"event ShowStage1Effect"
		at 2000 ms consoleCommand "event PlaySound PyramidStageGrow"
		at 2500 ms colorWidget "Stage1"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 2000 ms speed=cosine
		at 2500 ms consoleCommand		"event ShowStage1StarEffect"

	}
	
	animation InShowStage2
	{
		init screen						position=relative ( 0,0 )		
		init widget "Stage0"			hide
		init widget "Stage1"			show
		init widget "Stage2"			show
		init widget "Stage2"		color=( 255, 255, 255, 0 )
		
		at 0 ms consoleCommand			"event ShowStage1Effect"
		at 0 ms consoleCommand			"event ShowStage1StarEffect"
		at 0 ms consoleCommand			"event ShowStage2Effect"
		at 2000 ms consoleCommand "event PlaySound PyramidStageGrow"
		at 2500 ms colorWidget "Stage2"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 2000 ms speed=cosine
		at 2500 ms consoleCommand		"event ShowStage2StarEffect"

	}
	
	animation InShowStage3
	{
		init screen						position=relative ( 0,0 )
		init widget "Stage0"			hide
		init widget "Stage1"			hide
		init widget "Stage2"			show
		init widget "Stage3"			show
		init widget "Stage3"		color=( 255, 255, 255, 0 )
		
		at 0 ms consoleCommand			"event ShowStage1Effect"
		at 0 ms consoleCommand			"event ShowStage1StarEffect"
		at 0 ms consoleCommand			"event ShowStage2Effect"
		at 0 ms consoleCommand			"event ShowStage2StarEffect"
		at 0 ms consoleCommand			"event ShowStage3Effect"
		at 2000 ms consoleCommand "event PlaySound PyramidStageGrow"
		at 2500 ms colorWidget "Stage3"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 2000 ms speed=cosine
		at 2500 ms consoleCommand		"event ShowStage3StarEffect"

	}
	
	animation InShowStage4
	{
		init screen						position=relative ( 0,0 )
		init widget "Stage0"			hide
		init widget "Stage1"			hide
		init widget "Stage2"			hide
		init widget "Stage3"			show
		init widget "Stage4"			show
		init widget "Stage4"		color=( 255, 255, 255, 0 )
		
		at 0 ms consoleCommand			"event ShowStage1Effect"
		at 0 ms consoleCommand			"event ShowStage1StarEffect"
		at 0 ms consoleCommand			"event ShowStage2Effect"
		at 0 ms consoleCommand			"event ShowStage2StarEffect"
		at 0 ms consoleCommand			"event ShowStage3Effect"
		at 0 ms consoleCommand			"event ShowStage3StarEffect"
		at 0 ms consoleCommand			"event ShowStage4Effect"
		at 2000 ms consoleCommand "event PlaySound PyramidStageGrow"
		at 2500 ms colorWidget "Stage4"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 2000 ms speed=cosine
		at 2500 ms consoleCommand		"event ShowStage4StarEffect"

	}	
	
	animation InShowStage5
	{
		init screen						position=relative ( 0,0 )
		init widget "Stage0"			hide
		init widget "Stage1"			hide
		init widget "Stage2"			hide
		init widget "Stage3"			hide
		init widget "Stage4"			show
		init widget "Stage5"			show
		init widget "Stage5"		color=( 255, 255, 255, 0 )
		
		at 0 ms consoleCommand			"event ShowStage1Effect"
		at 0 ms consoleCommand			"event ShowStage1StarEffect"
		at 0 ms consoleCommand			"event ShowStage2Effect"
		at 0 ms consoleCommand			"event ShowStage2StarEffect"
		at 0 ms consoleCommand			"event ShowStage3Effect"
		at 0 ms consoleCommand			"event ShowStage3StarEffect"
		at 0 ms consoleCommand			"event ShowStage4Effect"
		at 0 ms consoleCommand			"event ShowStage4StarEffect"
		at 0 ms consoleCommand			"event ShowStage5Effect"
		at 2000 ms consoleCommand "event PlaySound PyramidStageGrow"
		at 2500 ms colorWidget "Stage5"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 2000 ms speed=cosine
		at 2500 ms consoleCommand		"event ShowStage5StarEffect"

	}
	
	animation InShowStage6
	{
		init screen						position=relative ( 0,0 )
		init widget "Stage0"			hide
		init widget "Stage1"			hide
		init widget "Stage2"			hide
		init widget "Stage3"			hide
		init widget "Stage4"			hide
		init widget "Stage5"			show
		init widget "Stage6"			show
		init widget "Stage6"		color=( 255, 255, 255, 0 )

		at 0 ms consoleCommand			"event ShowStage1Effect"
		at 0 ms consoleCommand			"event ShowStage1StarEffect"
		at 0 ms consoleCommand			"event ShowStage2Effect"
		at 0 ms consoleCommand			"event ShowStage2StarEffect"
		at 0 ms consoleCommand			"event ShowStage3Effect"
		at 0 ms consoleCommand			"event ShowStage3StarEffect"
		at 0 ms consoleCommand			"event ShowStage4Effect"
		at 0 ms consoleCommand			"event ShowStage4StarEffect"
		at 0 ms consoleCommand			"event ShowStage5Effect"
		at 0 ms consoleCommand			"event ShowStage5StarEffect"
		at 0 ms consoleCommand			"event ShowStage6Effect"
		at 2000 ms consoleCommand "event PlaySound PyramidStageGrow"
		at 2500 ms colorWidget "Stage6"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 2000 ms speed=cosine	
		at 2500 ms consoleCommand		"event ShowStage6StarEffect"

	}
	
	animation InShowStage7
	{
		init screen						position=relative ( 0,0 )
		init widget "Stage0"			hide
		init widget "Stage1"			hide
		init widget "Stage2"			hide
		init widget "Stage3"			hide
		init widget "Stage4"			hide
		init widget "Stage5"			hide
		init widget "Stage6"			show
		init widget "Stage7"			show
		init widget "Stage7"		color=( 255, 255, 255, 0 )
		
		at 0 ms consoleCommand			"event ShowStage1Effect"
		at 0 ms consoleCommand			"event ShowStage1StarEffect"
		at 0 ms consoleCommand			"event ShowStage2Effect"
		at 0 ms consoleCommand			"event ShowStage2StarEffect"
		at 0 ms consoleCommand			"event ShowStage3Effect"
		at 0 ms consoleCommand			"event ShowStage3StarEffect"
		at 0 ms consoleCommand			"event ShowStage4Effect"
		at 0 ms consoleCommand			"event ShowStage4StarEffect"
		at 0 ms consoleCommand			"event ShowStage5Effect"
		at 0 ms consoleCommand			"event ShowStage5StarEffect"
		at 0 ms consoleCommand			"event ShowStage6Effect"
		at 0 ms consoleCommand			"event ShowStage6StarEffect"
		at 0 ms consoleCommand			"event ShowStage7Effect"
		at 2000 ms consoleCommand "event PlaySound PyramidStageGrow"
		at 2500 ms colorWidget "Stage7"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 2000 ms speed=cosine
		at 2500 ms consoleCommand		"event ShowStage7StarEffect"

	}
	
	animation InShowStage8
	{
		init screen						position=relative ( 0,0 )
		init widget "Stage0"			hide
		init widget "Stage1"			hide
		init widget "Stage2"			hide
		init widget "Stage3"			hide
		init widget "Stage4"			hide
		init widget "Stage5"			hide
		init widget "Stage6"			hide
		init widget "Stage7"			show
		init widget "Stage8"			show
		init widget "Stage8"		color=( 255, 255, 255, 0 )
		
		at 0 ms consoleCommand			"event ShowStage1Effect"
		at 0 ms consoleCommand			"event ShowStage1StarEffect"
		at 0 ms consoleCommand			"event ShowStage2Effect"
		at 0 ms consoleCommand			"event ShowStage2StarEffect"
		at 0 ms consoleCommand			"event ShowStage3Effect"
		at 0 ms consoleCommand			"event ShowStage3StarEffect"
		at 0 ms consoleCommand			"event ShowStage4Effect"
		at 0 ms consoleCommand			"event ShowStage4StarEffect"
		at 0 ms consoleCommand			"event ShowStage5Effect"
		at 0 ms consoleCommand			"event ShowStage5StarEffect"
		at 0 ms consoleCommand			"event ShowStage6Effect"
		at 0 ms consoleCommand			"event ShowStage6StarEffect"
		at 0 ms consoleCommand			"event ShowStage7Effect"
		at 0 ms consoleCommand			"event ShowStage7StarEffect"
		at 0 ms consoleCommand			"event ShowStage8Effect"
		at 2000 ms consoleCommand "event PlaySound PyramidStageGrow"
		at 2500 ms colorWidget "Stage8"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 2000 ms speed=cosine
		at 2500 ms consoleCommand		"event ShowStage8StarEffect"

	}
	
	animation InShowStage9
	{
		init screen						position=relative ( 0,0 )
		init widget "Stage0"			hide
		init widget "Stage1"			hide
		init widget "Stage2"			hide
		init widget "Stage3"			hide
		init widget "Stage4"			hide
		init widget "Stage5"			hide
		init widget "Stage6"			hide
		init widget "Stage7"			hide
		init widget "Stage8"			show
		init widget "Stage9"			show
		init widget "Stage9"		color=( 255, 255, 255, 0 )
		
		at 0 ms consoleCommand			"event ShowStage1Effect"
		at 0 ms consoleCommand			"event ShowStage1StarEffect"
		at 0 ms consoleCommand			"event ShowStage2Effect"
		at 0 ms consoleCommand			"event ShowStage2StarEffect"
		at 0 ms consoleCommand			"event ShowStage3Effect"
		at 0 ms consoleCommand			"event ShowStage3StarEffect"
		at 0 ms consoleCommand			"event ShowStage4Effect"
		at 0 ms consoleCommand			"event ShowStage4StarEffect"
		at 0 ms consoleCommand			"event ShowStage5Effect"
		at 0 ms consoleCommand			"event ShowStage5StarEffect"
		at 0 ms consoleCommand			"event ShowStage6Effect"
		at 0 ms consoleCommand			"event ShowStage6StarEffect"
		at 0 ms consoleCommand			"event ShowStage7Effect"
		at 0 ms consoleCommand			"event ShowStage7StarEffect"
		at 0 ms consoleCommand			"event ShowStage8Effect"
		at 0 ms consoleCommand			"event ShowStage8StarEffect"
		at 0 ms consoleCommand			"event ShowStage9Effect"
		at 2000 ms consoleCommand "event PlaySound PyramidStageGrow"
		at 2500 ms colorWidget "Stage9"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 2000 ms speed=cosine
		at 2500 ms consoleCommand		"event ShowStage9StarEffect"

	}
	
	animation InShowStage10
	{
		init screen						position=relative ( 0,0 )		
		init widget "Stage0"			hide
		init widget "Stage1"			hide
		init widget "Stage2"			hide
		init widget "Stage3"			hide
		init widget "Stage4"			hide
		init widget "Stage5"			hide
		init widget "Stage6"			hide
		init widget "Stage7"			hide
		init widget "Stage8"			hide
		init widget "Stage9"			show
		init widget "Stage10"			show
		init widget "Stage10"		color=( 255, 255, 255, 0 )
		
		at 0 ms consoleCommand			"event ShowStage1Effect"
		at 0 ms consoleCommand			"event ShowStage1StarEffect"
		at 0 ms consoleCommand			"event ShowStage2Effect"
		at 0 ms consoleCommand			"event ShowStage2StarEffect"
		at 0 ms consoleCommand			"event ShowStage3Effect"
		at 0 ms consoleCommand			"event ShowStage3StarEffect"
		at 0 ms consoleCommand			"event ShowStage4Effect"
		at 0 ms consoleCommand			"event ShowStage4StarEffect"
		at 0 ms consoleCommand			"event ShowStage5Effect"
		at 0 ms consoleCommand			"event ShowStage5StarEffect"
		at 0 ms consoleCommand			"event ShowStage6Effect"
		at 0 ms consoleCommand			"event ShowStage6StarEffect"
		at 0 ms consoleCommand			"event ShowStage7Effect"
		at 0 ms consoleCommand			"event ShowStage7StarEffect"
		at 0 ms consoleCommand			"event ShowStage8Effect"
		at 0 ms consoleCommand			"event ShowStage8StarEffect"
		at 0 ms consoleCommand			"event ShowStage9Effect"
		at 0 ms consoleCommand			"event ShowStage9StarEffect"
		at 0 ms consoleCommand			"event ShowStage10Effect"
		at 2000 ms consoleCommand "event PlaySound PyramidStageGrow"
		at 2500 ms colorWidget "Stage10"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 2000 ms speed=cosine
		at 2500 ms consoleCommand		"event ShowStage10StarEffect"

	}
	
	animation InShowStage11
	{
		init screen						position=relative ( 0,0 )		
		init widget "Stage0"			hide
		init widget "Stage1"			hide
		init widget "Stage2"			hide
		init widget "Stage3"			hide
		init widget "Stage4"			hide
		init widget "Stage5"			hide
		init widget "Stage6"			hide
		init widget "Stage7"			hide
		init widget "Stage8"			hide
		init widget "Stage9"			hide
		init widget "Stage10"			show
		init widget "Stage11"			show
		init widget "Stage11"		color=( 255, 255, 255, 0 )

		at 0 ms consoleCommand			"event ShowStage1Effect"
		at 0 ms consoleCommand			"event ShowStage1StarEffect"
		at 0 ms consoleCommand			"event ShowStage2Effect"
		at 0 ms consoleCommand			"event ShowStage2StarEffect"
		at 0 ms consoleCommand			"event ShowStage3Effect"
		at 0 ms consoleCommand			"event ShowStage3StarEffect"
		at 0 ms consoleCommand			"event ShowStage4Effect"
		at 0 ms consoleCommand			"event ShowStage4StarEffect"
		at 0 ms consoleCommand			"event ShowStage5Effect"
		at 0 ms consoleCommand			"event ShowStage5StarEffect"
		at 0 ms consoleCommand			"event ShowStage6Effect"
		at 0 ms consoleCommand			"event ShowStage6StarEffect"
		at 0 ms consoleCommand			"event ShowStage7Effect"
		at 0 ms consoleCommand			"event ShowStage7StarEffect"
		at 0 ms consoleCommand			"event ShowStage8Effect"
		at 0 ms consoleCommand			"event ShowStage8StarEffect"
		at 0 ms consoleCommand			"event ShowStage9Effect"
		at 0 ms consoleCommand			"event ShowStage9StarEffect"
		at 0 ms consoleCommand			"event ShowStage10Effect"
		at 0 ms consoleCommand			"event ShowStage10StarEffect"
		at 0 ms consoleCommand			"event ShowStage11Effect"
		at 2000 ms consoleCommand "event PlaySound PyramidStageGrow"
		at 2500 ms colorWidget "Stage11"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 2000 ms speed=cosine		
		at 2500 ms colorWidget "Stage10" from ( 255,255,255,255 ) to ( 255,255,255,0 ) over 2000 ms speed=cosine	
		at 2500 ms consoleCommand		"event ShowStage11StarEffect"
		at 3000 ms consoleCommand			"event UIShowTopPyramidEffect"	
		at 5000 ms consoleCommand 		"PushDialog EndGameDialog"
		at 5000 ms moveScreen			from relative (0, 0) to relative (0, 0) over 50 ms
	}
	
	animation In
	{
		init screen					position=relative ( 0,0 )		
	}

	animation In_Left
	{
		animHandoffTime 0

		init screen			position=relative (800,0)		
		
		at 0 ms moveScreen			from relative (800,0) to relative (0,0) over 1600 ms speed=Cosine
	}
	
	animation Out_right
	{
		animHandoffTime 0

		init screen			position=relative (0,0)		
	
		at 0 ms moveScreen			from relative (0,0) to relative (800,0) over 1600 ms speed=Cosine
	}
	
	animation Out
	{
		animHandoffTime 0

		init screen			position=relative (0,0)
	}
	
	widget EffectEmitter fg_effects
	{
		mins 0, 0
	
		effectName "pyramid_foreground_01"
		StartOn
	}

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

		texture "data/gfx/ui/pyramid_progression/Pyramid_progression_fg"
	}
}
