//
//	lavahud animations
//

//===========================================

event HudSnapShotReminderIn
{
	Animate ScreenshotPanel				Position	"c-83 -50"	Linear 0.0 0.001
	Animate ScreenshotPanel				Position	"c-83 -50"	Spline 0.001 0.2
	
	// Fix for lingering HUD animations
	RunEvent HudHealthDyingPulseStop 	10.0
    RunEvent HudHealthBonusPulseStop 	10.0
    RunEvent HudLowAmmoPulseStop	 	10.0
    RunEvent HudMedicChargedStop 		10.0
}

event HudReplayReminderIn		// Places the replay reminder in the same place as the snapshot reminder
{
	Animate ReplayReminder		Position	"c-83 -50"	Linear 0.0 0.001
	Animate ReplayReminder		Position	"c-83 -50"	Spline 0.001 0.2
}

event HudReplayReminderIn2		// Puts the panel below the snapshot panel
{
	Animate ReplayReminder		Position	"c-83 -50"	Linear 0.0 0.001
	Animate ReplayReminder		Position	"c-83 -50"	Spline 0.001 0.2
}

event HudReplayTipIn
{
	Animate ReplayTip			Position	"10 -100"	Linear 0.0 0.001
	Animate ReplayTip			Position	"10 -100"	Spline 0.001 0.1
}

event HudReplayTipOut
{
	Animate ReplayTip			Position	"10 -100"	Linear 0.0 0.001
	Animate ReplayTip			Position	"10 -100"	Spline 0.001 0.1
}

event HudTournamentSetupPanelOpen
{
	Animate HudTournamentSetup	Position	"c-90 -70"	Linear 0.0 0.001
	Animate HudTournamentSetup	Position	"c-90 80"	Spline 0.001 0.2
}

event HudTournamentSetupPanelClose
{
	Animate HudTournamentSetup	Position	"c-90 80"	Linear 0.0 0.001
	Animate HudTournamentSetup	Position	"c-90 -70"	Spline 0.001 0.2
}

//===========================================

event ActiveTimerHighlight
{
	Animate TimePanelValue 			FgColor		"255 255 255 255"				Linear 0.1 0.1
	Animate TimePanelValue 			FgColor		"255 255 255 100"				Linear 0.3 0.1
	Animate TimePanelValue 			FgColor		"255 255 255 255"				Linear 0.5 0.1
	Animate TimePanelValue			FgColor		"255 255 255 100"				Linear 0.7 0.1
	Animate TimePanelValue 			FgColor		"255 255 255 255"				Linear 0.9 0.1
	Animate TimePanelValue 			FgColor		"255 255 255 100"				Linear 1.1 0.1
	Animate TimePanelValue 			FgColor		"255 255 255 255"				Linear 1.3 0.3
	
}

event ActiveTimerDim
{
	// Slow fade out
	Animate TimePanelValue 			FgColor		"255 255 255 100"				Linear 0.0 0.4
}

//===========================================

event HasMOTDBlink
{
	Animate	MOTD_ShowButtonPanel_SB 	Ypos		"-1"		Linear 0.0 0.05
	Animate	MOTD_ShowButtonPanel_SB 	Ypos		"0"			Linear 0.05 0.1
		
	Animate	MOTD_ShowButtonPanel_SB 	Ypos		"-1"		Linear 0.4 0.45
	Animate	MOTD_ShowButtonPanel_SB 	Ypos		"0"			Linear 0.45 0.5
	
	Animate	MOTD_ShowButtonPanel_SB 	Ypos		"-1"		Linear 0.8 0.85
	Animate	MOTD_ShowButtonPanel_SB 	Ypos		"0"			Linear 0.85 0.9

	RunEvent HasMOTDBlinkLoop			2.0
}

event HasMOTDBlinkLoop
{
	RunEvent HasMOTDBlink				0.0
}

event HasMOTDBlinkStop
{
	StopEvent HasMOTDBlink				0.0
	StopEvent HasMOTDBlinkLoop 			0.0
	
	Animate	MOTD_ShowButtonPanel_SB 	Ypos	"0"		Linear 0.0 0.05
}

//===========================================

event HasNotificationsBlink
{
	Animate	Notifications_ShowButtonPanel_SB 	Ypos		"0"		Linear 0.0 0.3
	Animate	Notifications_CountLabel 			Xpos		"0"		Linear 0.3 0.2
	Animate	Notifications_CountLabel 			Alpha		"255"	Linear 0.3 0.2
}

event HasNotificationsBlinkStop
{
	StopEvent HasNotificationsBlink				0.0
	StopEvent HasNotificationsBlinkLoop 		0.0
	Animate	Notifications_CountLabel 			Xpos		"16"	Linear 0.0 0.0
	Animate	Notifications_CountLabel 			Alpha		"0"		Linear 0.0 0.0
	Animate	Notifications_ShowButtonPanel_SB 	Ypos		"-26"	Linear 0.0 0.0
}

//===========================================

event HudReadyPulse
{	
	Animate	TournamentInstructionsLabel 		Alpha		"255"				Linear 0.0 0.1
	Animate	TournamentInstructionsLabelShadow 	Alpha		"255"				Linear 0.0 0.1
	Animate	TournamentInstructionsLabel 		FgColor		"G_White"			Linear 0.0 0.1
	Animate	TournamentInstructionsLabel 		FgColor		"RedSolid"			Linear 0.4 0.4
	RunEvent HudReadyPulseLoop		0.5
}

event HudReadyPulseEnd
{
	Animate	TournamentInstructionsLabel 		FgColor		"G_White"			Linear 0.0 0.1
	Animate	TournamentInstructionsLabel 		Alpha		"0"					Linear 0.0 0.1
	Animate	TournamentInstructionsLabelShadow 	Alpha		"0"					Linear 0.0 0.1
	StopEvent HudReadyPulse			0.0
	StopEvent HudReadyPulseLoop		0.0
}


// Robot Destruction

event RDPositiveScorePulse
{
	Animate Score FgColor			"25 255 25 255"		Linear 0.0 0.0
	Animate Score FgColor			"G_White"			Linear 0.1 0.2
	Animate Score Ypos				"8"					Deaccel 0.0 0.05
	Animate Score Ypos				"10"				Accel 0.05 0.2
	Animate ScoreShadow FgColor		"0 0 0 200"			Deaccel 0.0 0.05
	Animate ScoreShadow FgColor		"0 0 0 255"			Accel 0.1 0.2
}

event RDNegativeScorePulse
{
	Animate Score FgColor			"255 75 75 255"		Linear 0.0 0.0
	Animate Score FgColor			"G_White"			Linear 0.1 0.2
	Animate Score Ypos				"8"					Deaccel 0.0 0.05
	Animate Score Ypos				"10"				Accel 0.05 0.2
	Animate ScoreShadow FgColor		"0 0 0 200"			Deaccel 0.0 0.05
	Animate ScoreShadow FgColor		"0 0 0 255"			Accel 0.1 0.2
}

//===========================================

// Do not move chat window
event CompetitiveGame_LowerChatWindow { }
event CompetitiveGame_RestoreChatWindow { }
event HudTournament_MoveChatWindow { }

//===========================================

event HudTournament_ShowTimerCompetitive
{
	Animate CountdownLabel ypos 90 Linear 0 0
	Animate CountdownLabelShadow ypos 92 Linear 0 0
	SetVisible CountdownBG  1 0
	SetVisible CountdownLabel 1 0
	SetVisible CountdownLabelShadow 1 0
}

event HudTournament_ShowTimerDefault
{
	Animate CountdownLabel ypos 123 Linear 0 0
	Animate CountdownLabelShadow ypos 125 Linear 0 0
	SetVisible CountdownBG  1 0
	SetVisible CountdownLabel 1 0
	SetVisible CountdownLabelShadow 1 0
}

//===================================================

// Remove Sniper Scope Effect (Exploit)
//event ScopeRemoval
{
    //Animate HudScope Position    "9999 9999"    Linear 0.0 0.0
}

//===================================================

event MenuOpen
{
    //RunEvent    ScopeRemoval 0.0
	StopEvent	MenuClose 0.0 

	// fade in
	Animate HudMenu Alpha				"255"			Linear 0.0 0.1
	Animate HudMenu yPos				"-30"			Linear 0.0 0.0
	Animate HudMenu xPos				"0"				Linear 0.0 0.1
	Animate HudMenu SelectionAlpha 		"255"			Linear 0.0 0.1
	Animate HudMenu FgColor				"FgColor"		Linear 0.0 0.1
	Animate HudMenu MenuColor			"MenuColor"		Linear  0.0 0.1
	Animate HudMenu ItemColor			"ItemColor"		Linear 0.0 0.1
	Animate HudMenu TextScan			"1"				Linear 0.0 0.1

	// Undo any blur
	Animate HudMenu	Blur				"1"				Linear	0.0		0.01
}

event MenuClose
{	
	// Hide it
	Animate HudMenu Alpha				"0"				Linear 0.2 0.1
	Animate HudMenu xPos				"-200"			Linear 0.0 0.1
	Animate HudMenu SelectionAlpha 		"0" 			Linear 0.0 1
	Animate HudMenu FgColor				"0 0 0 0" 		Linear 0.0 1
	Animate HudMenu MenuColor			"0 0 0 0" 		Linear 0.0 1
	Animate HudMenu ItemColor			"0 0 0 0" 		Linear 0.0 1
}

//=============================================




