#############################################$# #Splitting (general action when passing split)# ############################################### Event OnSplit1() # Player event EndEvent Event OnSplit2() # Player event EndEvent Event OnSplit3() # Player event EndEvent Event OnLap() # Player event $NickName = GetCurrentPlayerVar("NickName"); $Position = GetCurrentPlayerVar("Pos"); $Laps = GetCurrentPlayerVar("LapsDone"); $nickNameFront = GetCurrentPlayerVar( "UNameBefore"); $nickNameBack = GetCurrentPlayerVar( "UNameBehind"); $DriftScore = GetCurrentPlayerVar( "DriftScore" ); $GapBefore = GetCurrentPlayerVar( "GapBefore"); $GapBehind = GetCurrentPlayerVar( "GapBehind"); $LapTime = NumToMSH(GetCurrentPlayerVar("LapTime")); $diffLapTimeToPB = NumToMSH( GetCurrentPlayerVar("diffLapTimeToPB")); openPrivButton( "leaderboardback",1,70,30,34,12,7,16,langEngine("%{main_linespace}%" )); openPrivButton( "leaderboardname",2,71,28,5,4,7,32,langEngine("%{main_leaderboard}%" )); # This says : LEADERBOARD : openPrivButton( "leaderboardhandle1",3,77,2,9,12,7,32," "); # This is to make board look like it has slots/handles openPrivButton( "leaderboardhandle1a",3,77,2,9,12,7,32," "); openPrivButton( "leaderboardhandle1b",3,77,2,9,12,7,32," "); openPrivButton( "leaderboardhandle2",3,87,2,9,12,7,32," "); openPrivButton( "leaderboardhandle2a",3,87,2,9,12,7,32," "); openPrivButton( "leaderboardhandle2b",3,87,2,9,12,7,32," "); openPrivButton( "leaderboardhandle3",27,77,2,9,12,7,32," "); openPrivButton( "leaderboardhandle3a",27,77,2,9,12,7,32," "); openPrivButton( "leaderboardhandle3b",27,77,2,9,12,7,32," "); openPrivButton( "leaderboardhandle4",27,87,2,9,12,7,32," "); openPrivButton( "leaderboardhandle4a",27,87,2,9,12,7,32," "); openPrivButton( "leaderboardhandle4b",27,87,2,9,12,7,32," "); openPrivButton( "playernameback",2,76,28,6,5,7,32," "); openPrivButton( "playername",6,77,20,5,5,7,16, $NickName); # player who will see board openPrivButton( "leaderboardtimeback",2,81,28,6,5,7,32," "); openPrivButton( "leaderboardtimes",5,81,22,5,5,7,0,langEngine("%{main_leaderboardtimes}%",$LapTime, $diffLapTimeToPB)); # laptime + diff to pb openPrivButton( "pos_lap_backing",2,86,28,6,5,7,32," "); openPrivButton( "position",7,86,4,6,5,7,0,"P"); openPrivButton( "lap",16,86,4,6,5,7,0,"L"); openPrivButton( "whatposition",10,86,5,6,5,7,32,langEngine("%{main_position}%",$Position)); # P1, P2, P3, etc openPrivButton( "whatlap",19,86,5,6,5,7,32,langEngine("%{main_lapnumber}%",$Laps)); # L1, L2, L3, etc openPrivButton( "who_front_backing",2,91,28,6,5,7,32," "); openPrivButton( "who_front",5,91,24,5,5,7,64,langEngine("%{main_whofrontofme}%",$nickNameFront, $GapBefore)); # Name of driver in front along with gap openPrivButton( "who_back_backing",2,96,28,6,5,7,32," "); openPrivButton( "who_back",5,96,24,5,5,7,64,langEngine("%{main_whobackofme}%",$nickNameBack, $GapBehind)); # Name of driver behind along with gap EndEvent ############################# Lang "EN" main_linespace = " "; main_leaderboard = "^1: ^0LEADERBOARD ^1:"; main_leaderboardtimes = "^2Lap: ^3{0} ^2[Diff to PB: ^3{1}^2]"; main_position = "^7{0}"; main_lapnumber = "^7{0}"; main_leaderboardtimes = "^2Lap: ^3{0} ^2[Diff to PB: ^3{1}^2]"; main_whofrontofme = "{0} ^3[^1+ ^1{1}^3]"; main_whobackofme = "{0} ^3[^2- ^3{1}]";