
Column "PlayerColor"
{
	AddFlag FORBIDTEAMS
	AddFlag DONTSHOWHEADER
	AddFlag ALWAYSUSESHORTESTWIDTH

	ClipRectHeight = -2
	ClipRectWidth = 4//5
}

Column "PlayerIcon"
{
	//AddFlag NOSPECTATORS
	RemoveFlag NOSPECTATORS
	AddFlag DONTSHOWHEADER
	AddFlag ALWAYSUSESHORTESTWIDTH
	AddFlag DISABLEIFEMPTY

	Alignment = Center
	ClipRectHeight = -2
}

CompositeColumn "Player"
{
	Columns = /*"PlayerColor",*/ "JoinQueue", "Name"
	GapBetweenColumns = 4
	Size = 200
}


Scoreboard
{
	MainHeader
	{

		MultiLineBlock( horizontalalign = center, verticalalign = center )
		{
			DrawString( value = "Rankings", font = "BigFont", textcolor = "Red", bottompadding = 4 )//6
			//DrawString( value = "[*] Rankings [*]", font = "ConFont", textcolor = "CBMV1", bottompadding = 3 )//Crayon42

			// [AK] Draw the name of the server if we're in an online game.
			IfOnlineGame( true )
			{
				DrawString( value = cvar( sv_hostname ), textcolor = "Grey", bottompadding = 1 )
			}

			// [AK] Draw the name of the current game mode and level.
			DrawString( value = gamemode + " - " + levellump + ": " + levelname, textcolor = "Gold", bottompadding = 1 )//Crayon160

			// Draw the time, frags, points, or kills we have left until the level ends.
			DrawString( value = limitstrings, textcolor = "Grey", bottompadding = 1 )

			// Draw the team scores and their relation (tied, red leads, etc).
			IfPlayersOnTeams( true )
			{
				IfEarnType( Frags, Points, Wins )
				{
					DrawString( value = pointstring, textcolor = "Grey", bottompadding = 1 )
				}
				// Draw my rank and my frags, points, etc. Don't draw it if we're in the intermission.
				Else
				{
					IfIntermission( false )
					{
						IfShouldShowRank( true )
						{
							DrawString( value = placestring, textcolor = "Grey", bottompadding = 1 )
						}
					}
				}
			}
			// Draw my rank and my frags, points, etc. Don't draw it if we're in the intermission.
			Else
			{
				IfIntermission( false )
				{
					IfShouldShowRank( true )
					{
						DrawString( value = placestring, textcolor = "Grey", bottompadding = 1 )
					}
				}
			}

			// [JS] Intermission countdown display.
			IfIntermission( true )
			{
				IfOnlineGame( true )
				{
					IfCVar( cl_intermissiontimer == true )
					{
						//DrawString( value = "Entering \ci" + nextlevellump + "\c-: \ci" + nextlevelname + " \ciin \co" + intermissiontimeleft + " s\cdecond(s)", textcolor = "Green" )
						DrawColor( value = "DarkGreen", width = 2147483648, height = 2, bottompadding = 2 )
						DrawString( value = "Next map -> \cf" + nextlevellump + "\cd: " + nextlevelname + "\nIntermission ends in " + intermissiontimeleft + " ", textcolor = "Green" )
						DrawColor( value = "DarkGreen", width = 2147483648, height = 2, bottompadding = 2 )
					}
				}
			}
			//DrawColor( value = "Green", width = 2147483648, height = 1, bottompadding = 2 )
		}
	}

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

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

					IfPlayersHaveLives( false )
					{
						DrawString( value = "Total Players: " + teamplayercount, textcolor = teamtextcolor, bottompadding = 1 )
					}
					Else
					{
						DrawString( value = "Players Alive: " + teamliveplayercount + "/" + teamplayercount, textcolor = teamtextcolor, bottompadding = 1 )
					}
				}
			}
			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 )
				}
			}
		}
	}

	SpectatorHeader
	{
		MultiLineBlock( verticalalign = center )
		{
			DrawString( value = "Spectators (" + spectatorcount + ")", textcolor = "Grey", bottompadding = 1 )
			DrawColor( value = "DD DD DD", width = 2147483648, height = 1, bottompadding = 2 )
		}
	}

//	BorderTexture = "TEST_BORDER"

	HeaderFont = "SmallFont"
	RowFont = "SmallFont"
	HeaderTextColor = "Grey"
	RowTextColor = "Grey"
	LocalRowTextColor = "Green"
	LocalRowDemoTextColor = "Gold"
	BackgroundColor = "00 00 00"
	BackgroundAmount = 0.5
	BackgroundBorderSize = 4
	LightRowBackgroundColor = "40 50 40"
	DarkRowBackgroundColor = "20 30 20"
	LocalRowBackgroundColor = "80 90 80"
	RowBackgroundAmount = 0.75//0.65
	DeadPlayerTextAlpha = 0.5//0.35
	DeadPlayerRowBackgroundAmount = 0.1//0
	GapBetweenHeaderAndRows = 2
	GapBetweenColumns = 2
	GapBetweenRows = 1//2
	ColumnPadding = 1
	HeaderHeight = -3
	RowHeight = -2
	ColumnOrder = "BotSkillIcon", "Index", "ReadyToGoAndStatusIcons", "ArtifactIcon", "PlayerIcon", /*"CountryFlag",*/ "Player", "Vote", /*"Handicap",*/ "Wins", "Points", "Frags", "Kills", "Damage", "Lives", "Secrets", "Deaths", "Time", "Ping"
	RankOrder = "Wins", "Points", "Frags", "Kills", "Damage", "Lives", "Secrets", "Deaths"

	AddFlag UseHeaderTextColorForBorders
//	RemoveFlag UseHeaderColorForBorders
//	AddFlag USETEXTUREFORBORDERS

//USETEAMTEXTCOLOR
//USEHEADERCOLORFORBORDERS
//USETEXTUREFORBORDERS
//SHOWGAPSINROWBACKGROUND
//DONTDRAWBORDERS
//DONTSEPARATETEAMS
//DONTUSELOCALROWBACKGROUNDCOLOR
//DONTSHOWTEAMHEADERS

//DONTSTRETCHROWHEIGHT ???
}
