deep.js
// This function draws the leaderboard.

This function draws the leaderboard.
This function draws the leaderboard .
function Draw_Leaderboard()
{
	var w = 160 - 18;
	var m = 25;
	Draw_Text_S("Scoreboard", window.innerWidth - (w / 2) - 20, 28, 17, "center", 4);
	for (var z = 0; z < _LB.length; z++)
	{
		var y = 26 + z * 17.3;
		context.beginPath();
		context.moveTo(window.innerWidth - w - m, 20 + y);
		context.lineTo(window.innerWidth - m, 20 + y);
		context.closePath();
		context.strokeStyle = Make_Color_Ex(_UI.r, _UI.g, _UI.b, 0.8);
		context.lineJoin = "round";
		context.lineWidth = 14.3;
		context.stroke();
		context.beginPath();
		context.moveTo(window.innerWidth - w - m, 20 + y);
		context.lineTo(window.innerWidth - w - m + (w / 100) * _LB[z].percent, 20 + y);
		context.closePath();
		context.strokeStyle = Make_Color_Ex(_L[_LB[z].team].r, _L[_LB[z].team].g, _L[_LB[z].team].b, 1);
		context.lineJoin = "round";
		context.lineWidth = 10.1;
		context.stroke();
		Draw_Text_S(_LB[z].name + " - " + ntoe(_LB[z].score), window.innerWidth - w / 2 - m, 20 + 4 + y, 10, "center", 3);
	}
}
function Draw_Leaderboard ( ) { var w = 160 - 18 ; var m = 25 ; Draw_Text_S ( "Scoreboard" , window . innerWidth - ( w / 2 ) - 20 , 28 , 17 , "center" , 4 ) ; for ( var z = 0 ; z < _LB . length ; z ++ ) { var y = 26 + z * 17.3 ; context . beginPath ( ) ; context . moveTo ( window . innerWidth - w - m , 20 + y ) ; context . lineTo ( window . innerWidth - m , 20 + y ) ; context . closePath ( ) ; context . strokeStyle = Make_Color_Ex ( _UI . r , _UI . g , _UI . b , 0.8 ) ; context . lineJoin = "round" ; context . lineWidth = 14.3 ; context . stroke ( ) ; context . beginPath ( ) ; context . moveTo ( window . innerWidth - w - m , 20 + y ) ; context . lineTo ( window . innerWidth - w - m + ( w / 100 ) * _LB [ z ] . percent , 20 + y ) ; context . closePath ( ) ; context . strokeStyle = Make_Color_Ex ( _L [ _LB [ z ] . team ] . r , _L [ _LB [ z ] . team ] . g , _L [ _LB [ z ] . team ] . b , 1 ) ; context . lineJoin = "round" ; context . lineWidth = 10.1 ; context . stroke ( ) ; Draw_Text_S ( _LB [ z ] . name + " - " + ntoe ( _LB [ z ] . score ) , window . innerWidth - w / 2 - m , 20 + 4 + y , 10 , "center" , 3 ) ; } }
This function draws the leaderboard.
This function draws the leaderboard .