Now the coding questions:
I'm currently using the leaderboard from someone else in my communuty, which uses the standard properties from SimHub.
But there's a glitch whenever a car crosses the line, putting that car into 1st place for a short moment before putting it into its correct position again.
So the whole leaderboard is jumping...
My plan is to use, as example, for the driver name of Pos 13: [SimHubSwoopPlugin.SWLeaderBoard.Position13.DriverFullName]
instead.
The issue now is that I'm using 49 repetitions, so I only have one row, which uses repetindex();
Would it be possible to replace the "Position13" with "Position'repeatindex()'" or something like that?
So it uses the next Position with every repetition.
I'd be really happy if I wouldn't have to copy, adjust and edit 50 rows manually
And maybe you could help me with how to do something like this to mark the row with the fastest lap of the race.
I simply have no idea how to use a property as a value.
View attachment 655458
var retval='#00FFFFFF';
positionSwoop = [SimHubSwoopPlugin.SWLeaderBoard.Position1.RacePosition]
retval = '#00FFFFFF'
if (positionSwoop % 2 == 0) {
retval = '#65808080'
}
if (isplayer(positionSwoop)) {
retval='#FF607D8B'
}
if (([SimHubSwoopPlugin.SWLeaderBoard.Position1.BestlapTime] == [SimHubSwoopPlugin.BestlapTime]) {
retval = '#FF9C27B0'
}
return retval;