//=============================================================================
// ChallengeTeamGameMenu
//=============================================================================
class ChallengeTeamGameMenu expands ChallengeDMOptionsMenu
	localized;

function bool ProcessLeft()
{
	if ( Selection == 14 )
		TeamGamePlus(GameType).FriendlyFireScale = FMax(0, TeamGame(GameType).FriendlyFireScale - 0.1);
	else 
		return Super.ProcessLeft();

	return true;
}

function bool ProcessRight()
{
	if ( Selection == 14 )
		TeamGamePlus(GameType).FriendlyFireScale = FMin(1, TeamGame(GameType).FriendlyFireScale + 0.1);
	else 
		return Super.ProcessRight();

	return true;
}

function DrawOptions(canvas Canvas, int StartX, int StartY, int Spacing)
{
	MenuList[14] = Default.MenuList[14];

	Super.DrawOptions(Canvas, StartX, StartY, Spacing);
}

function DrawValues(canvas Canvas, int StartX, int StartY, int Spacing)
{
	MenuList[14] = string(TeamGamePlus(GameType).FriendlyFireScale);

	Super.DrawValues(Canvas, StartX, StartY, Spacing);
}

defaultproperties
{
     GameClass=Class'BotPack.TeamGamePlus'
     MenuLength=14
     HelpMessage(14)="Percentage of damage taken when hit by friendly fire.  Note that you always take full damage from your own weapons."
     MenuList(14)="Friendly Fire Scale"
}
