//=============================================================================
// ChallengeAssaultMenu
//=============================================================================
class ChallengeAssaultMenu expands ChallengeTeamGameMenu
	localized;

function bool ProcessLeft()
{
	if ( Selection == 17 )
		Assault(GameType).Defenses = FMax(1, Assault(GameType).Defenses - 1);
	else 
		return Super.ProcessLeft();

	return true;
}

function bool ProcessRight()
{
	if ( Selection == 17 )
		Assault(GameType).Defenses = Assault(GameType).Defenses + 1;
	else 
		return Super.ProcessRight();

	return true;
}

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

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

function DrawValues(canvas Canvas, int StartX, int StartY, int Spacing)
{
	MenuList[17] = string(Assault(GameType).Defenses);

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

defaultproperties
{
     GameClass=Class'BotPack.Assault'
     MenuLength=17
     HelpMessage(17)="Total number of times fort will be defended. (With two teams, each will defend half that many times.)"
     MenuList(17)="Number of Defenses"
}
