background image

APPENDIX 2

JudoTimer Display Layout Customization

By modifying the text file JudoShiai/etc/timer-custom.txt it is possible to customize the 
JudoTimer display if none of the existing layouts are suitable. Note! The file will be overwritten 
when you install a new JudoShiai version. Please keep a backup copy elsewhere. 

The file consists of text lines. Each line describes one label (letter, text, number). Lines have 14 
values (columns) separated by spaces. Lines beginning with a hash mark (#) are comments.

X and Y coordinates can have values 0.0 – 1.0. Upper left corner has coordinates 0.0, 0.0, upper 
right is 1.0, 0.0, lower right is 1.0, 1.0.

Width and height can have values 0.0 – 1.0. 1.0 means the full width or height of the screen.

Colors can have values 0.0 – 1.0 (black to full intensity).

Meanings of the columns are described in the following table:

Column

Description

1

Number of the label. Do not change.

2

X coordinate of the label's upper left corner 0.0 - 1.0 (left to right).

3

Y coordinate 0.0 - 1.0 (top to bottom).

4

Width of the label 0.0 - 1.0. Width = 0 means label is not displayed.

5

Height of the label 0.0 - 1.0.

6

Size of the text. 0 means automatic adjustment, otherwise text size is this value 
multiplied by height of the label. For example size = 0.6 means text height is 60% of 
the label height.

7

Horizontal alignment of the text: -1 = align left, 0 = center, 1 = align right.

8

Foreground color, red component (0.0 - 1.0).

9

Foreground color, green component (0.0 - 1.0).

10

Foreground color, blue component (0.0 - 1.0).

11

Background color, red component (0.0 - 1.0). Negative value means transparent 
background.

12

Background color, green component (0.0 - 1.0).

13

Background color, blue component (0.0 - 1.0).

14

Wrap too long text: 0 = no wrap. 1 = wrap.

Label numbers define the following 37 items:

Number

Label description

0

Name of the first player

1

Name of the second player