Skip to content

Scripting

Rank and bib

GAZ/DLines can show rank and bib simultaneously together with the time. However, bib can only be three digits and rank only two digits. Therefore it is best to format the fields pulled from RR12 accordingly:

  • Bib: {{ [Bib] | TrimPad 3 "Center" }} to trim it to three digits and align center
  • Rank: {{ [RankFieldFromRR12] | TrimPad 2 "Center" }} to trim it to two digits and align center. Best is for the field to only contain the number, no formatter like a period at the end of the rank.

Time

GAZ/DLines expect a very specific format for it show information on it at all. Therefore besides properly formatting bib and rank, also the time needs to be formatted in a special way. Therefore some helper functions come in handy:

Functions

Method Parameters Description
gaz.FormatTime "precision" Formats the converted timespan to a given precision and makes sure that the format matche the ALGE-Timing protocol
Example: {{ "[RuntimeDisplayboard]" | gaz.FormatTime "Hundredths" }}

precision can be any of the following enumeration:

  • "Seconds" or 0
  • "Tenths" or 1
  • "Hundredths" or 2
  • "Thousands" or 3