// Traitcount unused
Column "TraitCount"
{
    DisplayName = "Traits"
    ShortName = "Traits"
    Alignment = Right
    Size = 16
    AddFlag NOSPECTATORS
}

Column "Assists"
{
    DisplayName = "Assists"
    ShortName = "Assists"
    Alignment = Right
    Size = 16
    AddFlag NOSPECTATORS
}

Column "Title"
{
    DisplayName = ""
    ShortName = ""
    Alignment = Left
    Size = 18
}

Column "Frags"
{
    DisplayName = "K"
    ShortName = "K"
}

Column "Assists"
{
    DisplayName = "A"
    ShortName = "A"
}

Column "Deaths"
{
    DisplayName = "D"
    ShortName = "D"
}

Scoreboard 
{
    RemoveFromColumnOrder = "Time"
    AddToColumnOrder = "Assists"
    AddToColumnOrder = "TraitCount"
    AddToColumnOrder = "Title"
	ColumnOrder = "BotSkillIcon", "Index", "ReadyToGoAndStatusIcons", "ArtifactIcon", "PlayerIcon", "CountryFlag", "Player", "Title", "Vote", "Handicap", "Points", "Frags", "Kills", "Damage", "Lives", "Secrets", "Deaths", "Assists", "Ping", "ConnectionStrength"

    TeamHeader
	{
		MultiLineBlock( verticalalign = center )
		{
			RowBlock( )
			{
				DrawTexture( value = teamlogo, rightpadding = 2 )

				MultiLineBlock( )
				{
					DrawString( value = teamname, font = "BigFont", textcolor = teamtextcolor, bottompadding = 1 )

					IfPlayersHaveLives( false ) || IfIntermission( true )
					{
						DrawString( value = "Total Players: " + teamplayercount, textcolor = teamtextcolor, bottompadding = 1 )
					}
					Else
					{
						DrawString( value = "Players Alive: " + teamliveplayercount + "/" + teamplayercount, textcolor = teamtextcolor, bottompadding = 1 )
					}
				}
			}

			// [AK] Use a width of INT_MAX to ensure this color box stretches across the entire margin.
			DrawColor( value = teamcolor, width = 2147483648, height = 1, bottompadding = 2 )
		}

		MultiLineBlock( horizontalalign = right, verticalalign = center, bottompadding = 4 )
		{
			IfEarnType( Frags, Points, Wins )
			{
				IfEarnType( Frags )
				{
					DrawString( value = "Frags: " + teamfragcount, font = "BigFont", textcolor = teamtextcolor )
				}
				Else
				{
					IfEarnType( Points )
					{
						DrawString( value = "Points: " + teampointcount, font = "BigFont", textcolor = teamtextcolor, bottompadding = 1 )
					}
					Else
					{
						DrawString( value = "Wins: " + teamwincount, font = "BigFont", textcolor = teamtextcolor, bottompadding = 1 )
					}

					DrawString( value = "Frags: " + teamfragcount, textcolor = teamtextcolor )
				}
			}
		}
	}
}
