From 048e0cfb55028186d31d67e361002467ef943981 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Fri, 1 Feb 2013 15:53:29 -0500 Subject: [PATCH] Add race support to the scoreboard. --- xonstat/templates/scoreboard.mako | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/xonstat/templates/scoreboard.mako b/xonstat/templates/scoreboard.mako index 3bcf31f..e243305 100644 --- a/xonstat/templates/scoreboard.mako +++ b/xonstat/templates/scoreboard.mako @@ -225,6 +225,20 @@ ${scoreboard_header(game_type_cd, pgstats[0])} % endif +% if game_type_cd == 'rc': + + + Nick + % if show_latency: + Ping + % endif + Laps + Fastest Lap + Time + + +% endif + ##### SCOREBOARD ROWS ##### @@ -299,4 +313,10 @@ ${scoreboard_header(game_type_cd, pgstats[0])} ${pgstat.drops} % endif +% if game_type_cd == 'rc': + ${pgstat.laps} + ${round(float(pgstat.fastest.seconds) + (pgstat.fastest.microseconds/1000000.0), 2)} + ${round(float(pgstat.time.seconds) + (pgstat.time.microseconds/1000000.0), 2)} +% endif + -- 2.39.2