//=============================================================================
// UnrealTeamGameOptionsMenu
//=============================================================================
class UnrealTeamGameOptionsMenu expands UnrealDMGameOptionsMenu;


function bool ProcessLeft()
{
	if ( Selection == 8 )
		TeamGame(Level.Game).FriendlyFireScale = FMax(0, TeamGame(Level.Game).FriendlyFireScale - 0.1);
	else 
		return CallParent.ProcessLeft();

	return true;
}

function bool ProcessRight()
{
	if ( Selection == 8 )
		TeamGame(Level.Game).FriendlyFireScale = FMin(1, TeamGame(Level.Game).FriendlyFireScale + 0.1);
	else 
		return CallParent.ProcessRight();

	return true;
}

function SaveConfigs()
{
	Level.Game.SaveConfig();
}

function int DrawOptions(canvas Canvas, int StartX, int StartY, int Spacing)
{
	StartY = CallParent.DrawOptions(Canvas, StartX, StartY, Spacing);

	// draw text
	Canvas.SetPos(StartX, StartY );
	Canvas.DrawText("Friendly Fire Scale", False);
	Canvas.SetPos(StartX + 160, StartY );
	Canvas.DrawText(TeamGame(Level.Game).FriendlyFireScale, False);

	return (StartY + Spacing); 
}

