////////////////////////////////////////////////////////////////////////////////
// NOTE: the names of these screens are defined in code
////////////////////////////////////////////////////////////////////////////////

Screen Classic_Hud
{
	onaction escape "pause"
	
	widget Button background
	{
		mins 0, 500
		size 800, 100

		texture "data/gfx/hud/HUD_background_Adventure"
	}
	
	widget Label CurrentStageAndLevel
	{
		mins 30, 565
		size 80, 30
		textVerticalAlignment "Center"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayCurrentStageAndLevel"
		style "DisplayText"
	}
	
	widget Button AnkhCoin
	{
		mins 130, 567
		size 32, 32

		anim "HUDAnkhCoin"
		
		EventToRestartAnim "OnCatchAnkhCoin"
	}
	
	widget Label CurrentAhnkCoinCount
	{
		mins 171, 567
		size 50, 30
		textVerticalAlignment "Center"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayAnkhCoinCount"
		style "DisplayText"
	}
	
	widget Button Scarab
	{
		mins 207, 548
		size 68, 68

		anim "HUDPusherDeath"		
		EventToRestartAnim "TrainDestroyed"
	}
	
	widget Label NumTrainsRemaining
	{
		mins 265, 568
		size 50, 30
		textVerticalAlignment "Center"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayNumTrainsRemaining"
		style "DisplayText"
	}
	
	

	widget Button CanopicJarBackground
	{
		mins 494, 554
		size 128, 57
		color 255, 245, 255, 255
		text " "
		texture "data/gfx/Hud/HUD_canopic_display"
		
		eventToHideOn "UIStartingNonAdventureCampaign"
		eventToShowOn "UIStartingAdventureCampaign"
	}
	
	widget Button CanopicJarCaught1
	{
		mins 503, 564
		size 28, 40

		texCoordsForMins (0, 0)
		texCoordsForMaxs (1, 1)
		
		text " "
		texture "data/gfx/CanopicJar/baboon/baboon_0000"
		
		hidden
		
		eventToHideOn "UIResetCanopicJars"
		eventToHideOn "UIResetCanopicJar01"
		
		eventToShowOn "UIShowCanopicJar01"
		eventToShowOn "UICaughtCanopicJar01"
	}
	
	widget EffectEmitter CanopicJarCaught1Effect
	{
		mins 503, 564
		
		effectName "Canopic_HUD_appear"
		
		eventToStartEffectsOn "UICaughtCanopicJar01"
	}
	
	
	
	widget Button CanopicJarCaught2
	{
		mins 530, 564
		size 28, 40
		
		texCoordsForMins (0, 0)
		texCoordsForMaxs (1, 1)

		text " "
		texture "data/gfx/CanopicJar/jackal/jackal_0000"
		
		hidden

		eventToHideOn "UIResetCanopicJars"
		eventToHideOn "UIResetCanopicJar02"
		
		eventToShowOn "UIShowCanopicJar02"
		eventToShowOn "UICaughtCanopicJar02"
	}
	
	widget EffectEmitter CanopicJarCaught2Effect
	{
		mins 530, 564
		
		effectName "Canopic_HUD_appear"
		
		eventToStartEffectsOn "UICaughtCanopicJar02"
	}
	
	
	
	widget Button CanopicJarCaught3
	{
		mins 558, 564
		size 28, 40
		
		texCoordsForMins (0, 0)
		texCoordsForMaxs (1, 1)

		text " "
		texture "data/gfx/CanopicJar/hawk/hawk_0000"
		
		hidden
		
		eventToHideOn "UIResetCanopicJars"
		eventToHideOn "UIResetCanopicJar03"
		
		eventToShowOn "UIShowCanopicJar03"
		eventToShowOn "UICaughtCanopicJar03"
	}
	
	widget EffectEmitter CanopicJarCaught3Effect
	{
		mins 558, 564
		
		effectName "Canopic_HUD_appear"
		
		eventToStartEffectsOn "UICaughtCanopicJar03"
	}
	
	
	
	widget Button CanopicJarCaught4
	{
		mins 585, 564
		size 28, 40
		
		texCoordsForMins (0, 0)
		texCoordsForMaxs (1, 1)

		text " "
		texture "data/gfx/CanopicJar/pharoh/pharoh_0000"
		
		hidden
		
		eventToHideOn "UIResetCanopicJars"
		eventToHideOn "UIResetCanopicJar04"
		
		eventToShowOn "UIShowCanopicJar04"
		eventToShowOn "UICaughtCanopicJar04"
	}
	
	widget EffectEmitter CanopicJarCaught4Effect
	{
		mins 585, 564
		
		effectName "Canopic_HUD_appear"
		
		eventToStartEffectsOn "UICaughtCanopicJar04"
	}
	
	widget EffectEmitter BonusLevelUnlockedEffect
	{
		mins 0, 0
		effectName "Bonus_Level_Unlocked"
		eventToStartEffectsOn "UIStartBonusLevelUnlockedEffect"
		eventToStopEffectsOn "UIStopBonusLevelUnlockedEffect"
		
		eventToHideOn "UIStartingNonAdventureCampaign"
		eventToShowOn "UIStartingAdventureCampaign"
	}
	
	widget Label CurrentScore
	{
		mins 645, 570
		size 100, 30
		textVerticalAlignment "Top"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayScore"
		style "DisplayText"
	}
/*	
	widget Button ShotMarker1
	{
		mins 381, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator1"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker2
	{
		mins 345, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator2"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker3
	{
		mins 308, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator3"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker4
	{
		mins 488, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator3"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker5
	{
		mins 450, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator2"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker6
	{
		mins 416, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator1"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
*/	
	widget EffectEmitter ComboEffect1
	{
		mins 400, 600
		
		effectName "Hud_Powerup_Meter_L1"
		
		EventToStartEffectsOn "UIDisplayChainIndicator1"
		
		EventToStopEffectsOn "UIDisplayNoChainIndicators"
		EventToStopEffectsOn "UIDisplayChainIndicator2"
	}
	
	widget EffectEmitter ComboEffect2
	{
		mins 400, 600
		
		effectName "Hud_Powerup_Meter_L2"
		
		EventToStartEffectsOn "UIDisplayChainIndicator2"
		
		EventToStopEffectsOn "UIDisplayNoChainIndicators"
		EventToStopEffectsOn "UIDisplayChainIndicator3"
	}
	
	widget EffectEmitter ComboEffect3
	{
		mins 400, 600
		
		effectName "Hud_Powerup_Meter_L3"
		
		EventToStartEffectsOn "UIDisplayChainIndicator3"
		
		EventToStopEffectsOn "UIDisplayNoChainIndicators"
		EventToStopEffectsOn "UIDisplayChainIndicator1"
	}
	
	widget PowerupDurationDisplay powerups
	{
		RingRadius 16.0
		StartPosition ( 330, 580 )
		DeltaPosition ( 35.5, 0 )
		
		LevelStartAngles ( 144.0, 216.0, 288.0, 360.0 )
	
		IndicatorBackgroundTexture "data/gfx/powerups/fall/base_01"
		//IndicatorRingTexture "data/gfx/hud/powerupDurationIndicators/powerupIndicatorRing"
		//IndicatorOverlayTexture ""
		
		EventToUpdatePowerupsOn "UIUpdateCurrentPowerups"
		EventToAddNewPowerupOn "UIPushNewPowerupEffect"
		EventToClearOn "UIClearAllPowerupDurations"
	}
	
	animation In
	{
		init screen						position=relative (0, 100)		
	
		at 0 ms moveScreen				from relative (0, 100) to relative (0, 0) over 1000 ms speed=cosine
	}
	
	animation Out
	{
		animHandoffTime 1000  
		
		at 0 ms moveScreen					from relative (0, 0) to relative (0, 100) over 1000 ms speed=cosine
	}
}

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

Screen Survival_Hud
{
	onaction escape "pause"
	
	widget Button background
	{
		mins 0, 500
		size 800, 100

		texture "data/gfx/hud/HUD_background_Survival"
	}
	
	widget Label CurrentStageAndLevel
	{
		mins 30, 565
		size 80, 30
		textVerticalAlignment "Center"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayCurrentStageAndLevel"
		style "DisplayText"
	}
	
	widget Button AnkhCoin
	{
		mins 130, 567
		size 32, 32

		anim "HUDAnkhCoin"
		
		EventToRestartAnim "OnCatchAnkhCoin"
	}
	
	widget Label CurrentAhnkCoinCount
	{
		mins 171, 567
		size 50, 30
		textVerticalAlignment "Center"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayAnkhCoinCount"
		style "DisplayText"
	}
	
	widget Button TimerBackground
	{
		mins 704, 0
		size 96, 44

		texture "data/gfx/hud/HUD_Timer_Background"
	}
	
	widget Label CurrentTimer
	{
		mins 730, 0
		size 70, 30
		
		EventToPopulateFrom "UIDisplaySurvivalTimer"
		textAlignment "Center"
		style "DisplayText"
	}

	widget Button CanopicJarBackground
	{
		mins 494, 554
		size 128, 57
		color 255, 245, 255, 255
		text " "
		texture "data/gfx/Hud/HUD_canopic_display"
		
		eventToHideOn "UIStartingNonAdventureCampaign"
		eventToShowOn "UIStartingAdventureCampaign"
	}
	
	widget Button CanopicJarCaught1
	{
		mins 503, 564
		size 28, 40

		texCoordsForMins (0, 0)
		texCoordsForMaxs (1, 1)
		
		text " "
		texture "data/gfx/CanopicJar/baboon/baboon_0000"
		
		hidden
		
		eventToHideOn "UIResetCanopicJars"
		eventToHideOn "UIResetCanopicJar01"
		
		eventToShowOn "UIShowCanopicJar01"
		eventToShowOn "UICaughtCanopicJar01"
	}
	
	widget EffectEmitter CanopicJarCaught1Effect
	{
		mins 503, 564
		
		effectName "Canopic_HUD_appear"
		
		eventToStartEffectsOn "UICaughtCanopicJar01"
	}
	
	
	
	widget Button CanopicJarCaught2
	{
		mins 530, 564
		size 28, 40
		
		texCoordsForMins (0, 0)
		texCoordsForMaxs (1, 1)

		text " "
		texture "data/gfx/CanopicJar/jackal/jackal_0000"
		
		hidden

		eventToHideOn "UIResetCanopicJars"
		eventToHideOn "UIResetCanopicJar02"
		
		eventToShowOn "UIShowCanopicJar02"
		eventToShowOn "UICaughtCanopicJar02"
	}
	
	widget EffectEmitter CanopicJarCaught2Effect
	{
		mins 530, 564
		
		effectName "Canopic_HUD_appear"
		
		eventToStartEffectsOn "UICaughtCanopicJar02"
	}
	
	
	
	widget Button CanopicJarCaught3
	{
		mins 558, 564
		size 28, 40
		
		texCoordsForMins (0, 0)
		texCoordsForMaxs (1, 1)

		text " "
		texture "data/gfx/CanopicJar/hawk/hawk_0000"
		
		hidden
		
		eventToHideOn "UIResetCanopicJars"
		eventToHideOn "UIResetCanopicJar03"
		
		eventToShowOn "UIShowCanopicJar03"
		eventToShowOn "UICaughtCanopicJar03"
	}
	
	widget EffectEmitter CanopicJarCaught3Effect
	{
		mins 558, 564
		
		effectName "Canopic_HUD_appear"
		
		eventToStartEffectsOn "UICaughtCanopicJar03"
	}
	
	
	
	widget Button CanopicJarCaught4
	{
		mins 585, 564
		size 28, 40
		
		texCoordsForMins (0, 0)
		texCoordsForMaxs (1, 1)

		text " "
		texture "data/gfx/CanopicJar/pharoh/pharoh_0000"
		
		hidden
		
		eventToHideOn "UIResetCanopicJars"
		eventToHideOn "UIResetCanopicJar04"
		
		eventToShowOn "UIShowCanopicJar04"
		eventToShowOn "UICaughtCanopicJar04"
	}
	
	widget EffectEmitter CanopicJarCaught4Effect
	{
		mins 585, 564
		
		effectName "Canopic_HUD_appear"
		
		eventToStartEffectsOn "UICaughtCanopicJar04"
	}
	
	widget EffectEmitter BonusLevelUnlockedEffect
	{
		mins 0, 0
		effectName "Bonus_Level_Unlocked"
		eventToStartEffectsOn "UIStartBonusLevelUnlockedEffect"
		eventToStopEffectsOn "UIStopBonusLevelUnlockedEffect"
		
		eventToHideOn "UIStartingNonAdventureCampaign"
		eventToShowOn "UIStartingAdventureCampaign"
	}	
	
	widget Label CurrentScore
	{
		mins 645, 570
		size 100, 30
		textVerticalAlignment "Top"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayScore"
		style "DisplayText"
	}
/*	
	widget Button ShotMarker1
	{
		mins 381, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator1"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker2
	{
		mins 345, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator2"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker3
	{
		mins 308, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator3"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker4
	{
		mins 488, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator3"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker5
	{
		mins 450, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator2"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker6
	{
		mins 416, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator1"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
*/	
	widget EffectEmitter ComboEffect1
	{
		mins 400, 600
		
		effectName "Hud_Powerup_Meter_L1"
		
		EventToStartEffectsOn "UIDisplayChainIndicator1"
		
		EventToStopEffectsOn "UIDisplayNoChainIndicators"
		EventToStopEffectsOn "UIDisplayChainIndicator2"
	}
	
	widget EffectEmitter ComboEffect2
	{
		mins 400, 600
		
		effectName "Hud_Powerup_Meter_L2"
		
		EventToStartEffectsOn "UIDisplayChainIndicator2"
		
		EventToStopEffectsOn "UIDisplayNoChainIndicators"
		EventToStopEffectsOn "UIDisplayChainIndicator3"
	}
	
	widget EffectEmitter ComboEffect3
	{
		mins 400, 600
		
		effectName "Hud_Powerup_Meter_L3"
		
		EventToStartEffectsOn "UIDisplayChainIndicator3"
		
		EventToStopEffectsOn "UIDisplayNoChainIndicators"
		EventToStopEffectsOn "UIDisplayChainIndicator1"
	}
	
	widget PowerupDurationDisplay powerups
	{
		RingRadius 16.0
		StartPosition ( 330, 580 )
		DeltaPosition ( 35.5, 0 )
		
		LevelStartAngles ( 144.0, 216.0, 288.0, 360.0 )
	
		IndicatorBackgroundTexture "data/gfx/powerups/fall/base_01"
		//IndicatorRingTexture "data/gfx/hud/powerupDurationIndicators/powerupIndicatorRing"
		//IndicatorOverlayTexture ""
		
		EventToUpdatePowerupsOn "UIUpdateCurrentPowerups"
		EventToAddNewPowerupOn "UIPushNewPowerupEffect"
		EventToClearOn "UIClearAllPowerupDurations"
	}

	animation In
	{
		init screen						position=relative (0, 100)	
		init widget "TimerBackground"			position=relative (96,0)
		init widget "CurrentTimer"			color=( 255,255,255,0 )
	
		at 0 ms moveScreen				from relative (0, 100) to relative (0, 0) over 1000 ms speed=cosine
	}
	
	animation ShowTimer
	{
		init widget "TimerBackground"			position=relative (96,0)
		init widget "CurrentTimer"			color=( 255,255,255,0 )
		init widget "CurrentTimer"			position=relative ( -365,200 )
		init widget "CurrentTimer"			fontSizeScale=5.0
		
		at 0 ms colorWidget "CurrentTimer"		from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 200 ms speed=Cosine
		at 800 ms moveWidget "CurrentTimer"		from relative ( -365,200) to relative ( 0,0 ) over 1000 ms speed=Cosine
		at 800 ms scaleWidgetText "CurrentTimer"	from 5.0 to 1.0 over 1000ms speed=Cosine
		at 1000 ms moveWidget "TimerBackground"		from relative (96,0) to relative (0,0) over 800 ms speed=Cosine
	}
	
	animation Out
	{
		animHandoffTime 1000  
		at 0 ms moveWidget "TimerBackground"		from relative (0,0) to relative (96,0) over 800 ms speed=Cosine
		at 0 ms moveWidget "CurrentTimer"		from relative (0,0) to relative (96,0) over 800 ms speed=Cosine
		at 800 ms moveScreen					from relative (0, 0) to relative (0, 100) over 1000 ms speed=cosine
	}
}

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

Screen Centipede_Hud
{
	onaction escape "pause"
	
	widget Button background
	{
		mins 0, 500
		size 800, 100

		texture "data/gfx/hud/HUD_background_Centipede"
	}
	
	widget Label CurrentStageAndLevel
	{
		mins 30, 565
		size 80, 30
		textVerticalAlignment "Center"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayCurrentStageAndLevel"
		style "DisplayText"
	}
	
	widget Button AnkhCoin
	{
		mins 130, 567
		size 32, 32
		
        anim "HUDAnkhCoin"
		
		EventToRestartAnim "OnCatchAnkhCoin"
	}
	
	widget Label CurrentAhnkCoinCount
	{
		mins 171, 567
		size 50, 30
		textVerticalAlignment "Center"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayAnkhCoinCount"
		style "DisplayText"
	}
	
	widget Button Scarab
	{
		mins 207, 548
		size 68, 68

		anim "HUDPusherDeath"
		
		EventToRestartAnim "TrainDestroyed"
	}
	
	widget Label NumTrainsRemaining
	{
		mins 265, 568
		size 50, 30
		textVerticalAlignment "Center"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayNumTrainsRemaining"
		style "DisplayText"
	}
	
	widget Label CurrentScore
	{
		mins 645, 570
		size 100, 30
		textVerticalAlignment "Top"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayScore"
		style "DisplayText"
	}
/*	
	widget Button ShotMarker1
	{
		mins 381, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator1"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker2
	{
		mins 345, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator2"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker3
	{
		mins 308, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator3"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker4
	{
		mins 488, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator3"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker5
	{
		mins 450, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator2"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker6
	{
		mins 416, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator1"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
*/	
	widget EffectEmitter ComboEffect1
	{
		mins 400, 600
		
		effectName "Hud_Powerup_Meter_L1"
		
		EventToStartEffectsOn "UIDisplayChainIndicator1"
		
		EventToStopEffectsOn "UIDisplayNoChainIndicators"
		EventToStopEffectsOn "UIDisplayChainIndicator2"
	}
	
	widget EffectEmitter ComboEffect2
	{
		mins 400, 600
		
		effectName "Hud_Powerup_Meter_L2"
		
		EventToStartEffectsOn "UIDisplayChainIndicator2"
		
		EventToStopEffectsOn "UIDisplayNoChainIndicators"
		EventToStopEffectsOn "UIDisplayChainIndicator3"
	}
	
	widget EffectEmitter ComboEffect3
	{
		mins 400, 600
		
		effectName "Hud_Powerup_Meter_L3"
		
		EventToStartEffectsOn "UIDisplayChainIndicator3"
		
		EventToStopEffectsOn "UIDisplayNoChainIndicators"
		EventToStopEffectsOn "UIDisplayChainIndicator1"
	}
	
	widget PowerupDurationDisplay powerups
	{
		RingRadius 16.0
		StartPosition ( 330, 580 )
		DeltaPosition ( 35.5, 0 )
		
		LevelStartAngles ( 144.0, 216.0, 288.0, 360.0 )
	
		IndicatorBackgroundTexture "data/gfx/powerups/fall/base_01"
		//IndicatorRingTexture "data/gfx/hud/powerupDurationIndicators/powerupIndicatorRing"
		//IndicatorOverlayTexture ""
		
		EventToUpdatePowerupsOn "UIUpdateCurrentPowerups"
		EventToAddNewPowerupOn "UIPushNewPowerupEffect"
		EventToClearOn "UIClearAllPowerupDurations"
	}
	
	animation In
	{
		init screen						position=relative (0, 100)		
	
		at 0 ms moveScreen				from relative (0, 100) to relative (0, 0) over 1000 ms speed=cosine
	}
	
	animation Out
	{
		animHandoffTime 1000
		
		at 0 ms moveScreen					from relative (0, 0) to relative (0, 100) over 1000 ms speed=cosine
	}
}

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

Screen CrossingTheNile_Hud
{
	onaction escape "pause"
	
	widget Button background
	{
		mins 0, 500
		size 800, 100

		texture "data/gfx/hud/HUD_background_CrossingNile"
	}
	
	widget Label CurrentStageAndLevel
	{
		mins 30, 565
		size 80, 30
		textVerticalAlignment "Center"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayCurrentStageAndLevel"
		style "DisplayText"
	}
	
	widget Button AnkhCoin
	{
		mins 130, 567
		size 32, 32
		
        anim "HUDAnkhCoin"
		
		EventToRestartAnim "OnCatchAnkhCoin"
	}
	
	widget Label CurrentAhnkCoinCount
	{
		mins 171, 567
		size 50, 30
		textVerticalAlignment "Center"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayAnkhCoinCount"
		style "DisplayText"
	}
	
	widget Label CurrentScore
	{
		mins 645, 570
		size 100, 30
		textVerticalAlignment "Top"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayScore"
		style "DisplayText"
	}
/*	
	widget Button ShotMarker1
	{
		mins 381, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator1"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker2
	{
		mins 345, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator2"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker3
	{
		mins 308, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator3"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker4
	{
		mins 488, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator3"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker5
	{
		mins 450, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator2"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
	
	widget Button ShotMarker6
	{
		mins 416, 589
		size 9, 9
		
		text " "
		texture "data/gfx/Hud/HUD_shot_marker"
		
		hidden
		
		EventToShowOn "UIDisplayChainIndicator1"
		EventToHideOn "UIDisplayNoChainIndicators"
	}
*/	
	widget EffectEmitter ComboEffect1
	{
		mins 400, 600
		
		effectName "Hud_Powerup_Meter_L1"
		
		EventToStartEffectsOn "UIDisplayChainIndicator1"
		
		EventToStopEffectsOn "UIDisplayNoChainIndicators"
		EventToStopEffectsOn "UIDisplayChainIndicator2"
	}
	
	widget EffectEmitter ComboEffect2
	{
		mins 400, 600
		
		effectName "Hud_Powerup_Meter_L2"
		
		EventToStartEffectsOn "UIDisplayChainIndicator2"
		
		EventToStopEffectsOn "UIDisplayNoChainIndicators"
		EventToStopEffectsOn "UIDisplayChainIndicator3"
	}
	
	widget EffectEmitter ComboEffect3
	{
		mins 400, 600
		
		effectName "Hud_Powerup_Meter_L3"
		
		EventToStartEffectsOn "UIDisplayChainIndicator3"
		
		EventToStopEffectsOn "UIDisplayNoChainIndicators"
		EventToStopEffectsOn "UIDisplayChainIndicator1"
	}
	
	widget PowerupDurationDisplay powerups
	{
		RingRadius 16.0
		StartPosition ( 330, 580 )
		DeltaPosition ( 35.5, 0 )
		
		LevelStartAngles ( 144.0, 216.0, 288.0, 360.0 )
	
		IndicatorBackgroundTexture "data/gfx/powerups/fall/base_01"
		//IndicatorRingTexture "data/gfx/hud/powerupDurationIndicators/powerupIndicatorRing"
		//IndicatorOverlayTexture ""
		
		EventToUpdatePowerupsOn "UIUpdateCurrentPowerups"
		EventToAddNewPowerupOn "UIPushNewPowerupEffect"
		EventToClearOn "UIClearAllPowerupDurations"
	}
	
	animation In
	{
		init screen						position=relative (0, 100)		
	
		at 0 ms moveScreen				from relative (0, 100) to relative (0, 0) over 1000 ms speed=cosine
	}
	
	animation Out
	{
		animHandoffTime 1000
		
		at 0 ms moveScreen					from relative (0, 0) to relative (0, 100) over 1000 ms speed=cosine
	}
}

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

Screen Puzzle_Hud
{
	onaction escape "pause"
	
	widget Button background
	{
		mins 0, 500
		size 800, 100

		texture "data/gfx/hud/HUD_background_Puzzle"
	}
	
	widget Label CurrentStageAndLevel
	{
		mins 36, 568
		size 80, 30
		textVerticalAlignment "Center"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayCurrentStageAndLevel"
		style "DisplayText"
	}
	
	widget Button AnkhCoin
	{
		mins 130, 567
		size 32, 32
		
        anim "HUDAnkhCoin"
		
		EventToRestartAnim "OnCatchAnkhCoin"
	}
	
	widget Label CurrentAhnkCoinCount
	{
		mins 171, 567
		size 50, 30
		textVerticalAlignment "Center"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayAnkhCoinCount"
		style "DisplayText"
	}
	
	widget Label CurrentScore
	{
		mins 635, 570
		size 100, 30
		textVerticalAlignment "Top"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayScore"
		style "DisplayText"
	}
	
	Widget PuzzleAmmoQueue ammoQueue
	{
		TrackPath "data/maps/puzzle/queuepath.LX3TRK" 
	
		EventToPopFrontAmmoOn "UIPopFrontAmmoFromQueue"
		EventToPopulateAmmoFrom "UIPushAmmoQueue"
	}
	
	animation In
	{
		init screen						position=relative (0, 100)		
	
		at 0 ms moveScreen				from relative (0, 100) to relative (0, 0) over 1000 ms speed=cosine
	}
	
	animation Out
	{
		animHandoffTime 1000
		
		at 0 ms moveScreen					from relative (0, 0) to relative (0, 100) over 1000 ms speed=cosine
	}
}

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

Screen TreasureHunter_Hud
{
	onaction escape "pause"
	
	widget Button background
	{
		mins 0, 500
		size 800, 100

		texture "data/gfx/hud/HUD_background_Bonus"
	}
		
	widget Label CurrentStageAndLevel
	{
		mins 35, 565
		size 80, 30
		textVerticalAlignment "Center"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayCurrentStageAndLevel"
		style "DisplayText"
	}
	
	widget Button AnkhCoin
	{
		mins 130, 567
		size 32, 32
		
        anim "HUDAnkhCoin"
		
		EventToRestartAnim "OnCatchAnkhCoin"
	}
	
	widget Label CurrentAhnkCoinCount
	{
		mins 171, 567
		size 50, 30
		textVerticalAlignment "Center"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayAnkhCoinCount"
		style "DisplayText"
	}
	
	widget Button TimerBackground
	{
		mins 704, 0
		size 96, 44

		texture "data/gfx/hud/HUD_Timer_Bkg_Bonus"
	}
	
	widget Label CurrentTimer
	{
		mins 730, 0
		size 70, 30
		
		EventToPopulateFrom "UIDisplayTreasureHunterTimer"
		textAlignment "Center"
		style "DisplayText"
	}
	
	widget Label CurrentScore
	{
		mins 645, 570
		size 100, 30
		textVerticalAlignment "Top"	
		textAlignment "Left"
		
		EventToPopulateFrom "UIDisplayScore"
		style "DisplayText"
	}
	
	animation In
	{
		init screen						position=relative (0, 100)
		init widget "TimerBackground"			position=relative (96,0)
		init widget "CurrentTimer"			color=( 255,255,255,0 )
					
		at 0 ms moveScreen				from relative (0, 100) to relative (0, 0) over 1000 ms speed=cosine
	}
	
	animation ShowTimer
	{
		init widget "TimerBackground"			position=relative (96,0)
		init widget "CurrentTimer"			color=( 255,255,255,0 )
		init widget "CurrentTimer"			position=relative ( -365,200 )
		init widget "CurrentTimer"			fontSizeScale=5.0
		
		at 0 ms colorWidget "CurrentTimer"		from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 200 ms speed=Cosine
		at 400 ms moveWidget "CurrentTimer"		from relative ( -365,200) to relative ( 0,0 ) over 800 ms speed=Cosine
		at 400 ms scaleWidgetText "CurrentTimer"	from 5.0 to 1.0 over 800ms speed=Cosine
		at 500 ms moveWidget "TimerBackground"		from relative (96,0) to relative (0,0) over 400 ms speed=Cosine
	}
	
	animation Out
	{
		animHandoffTime 1000  
		
		at 0 ms moveWidget "TimerBackground"		from relative (0,0) to relative (96,0) over 800 ms speed=Cosine
		at 0 ms moveWidget "CurrentTimer"		from relative (0,0) to relative (96,0) over 800 ms speed=Cosine
		at 800 ms moveScreen					from relative (0, 0) to relative (0, 100) over 1000 ms speed=cosine
	}
}





