@@ -18,66 +18,91 @@ def __init__(self, appName):
18
18
19
19
self .backgroundTexture = ac .addLabel (self .window , "" )
20
20
ac .setPosition (self .backgroundTexture , 0 ,0 )
21
- ac .setSize (self .backgroundTexture , 700 , 50 )
21
+ ac .setSize (self .backgroundTexture , 800 , 50 )
22
22
ac .setBackgroundTexture (self .backgroundTexture , FC .DRIVER_WIDGET_BACKGROUND_ALTERNATE );
23
23
24
24
self .extendedBackgroundTexture = ac .addLabel (self .window , "" )
25
25
ac .setPosition (self .extendedBackgroundTexture , 0 , 50 )
26
- ac .setSize (self .extendedBackgroundTexture , 700 , 100 )
26
+ ac .setSize (self .extendedBackgroundTexture , 800 , 92 )
27
27
ac .setBackgroundTexture (self .extendedBackgroundTexture , FC .LEADERBOARD_BACKGROUND );
28
28
29
29
self .rolexLabel = ac .addLabel (self .window , "" )
30
30
ac .setPosition (self .rolexLabel , 0 , - 72 )
31
31
ac .setSize (self .rolexLabel , 123 , 70 )
32
32
ac .setBackgroundTexture (self .rolexLabel , FC .ROLEX_LOGO );
33
33
34
+ self .speedometerIconLabel = ac .addLabel (self .window , "" )
35
+ ac .setPosition (self .speedometerIconLabel , 378 , 3 )
36
+ ac .setSize (self .speedometerIconLabel , 44 , 44 )
37
+ ac .setBackgroundTexture (self .speedometerIconLabel , FC .SPEEDOMETER_ICON );
38
+
39
+ # ==========================================
40
+
34
41
self .positionLabel1 = ac .addLabel (self .window , "" )
35
42
ac .setPosition (self .positionLabel1 , 3 ,3 )
36
43
ac .setSize (self .positionLabel1 , 44 , 44 )
37
44
38
45
self .positionLabel2 = ac .addLabel (self .window , "" )
39
- ac .setPosition (self .positionLabel2 , 383 ,3 )
46
+ ac .setPosition (self .positionLabel2 , 433 ,3 )
40
47
ac .setSize (self .positionLabel2 , 44 , 44 )
41
48
49
+ # ==========================================
50
+
42
51
self .teamLabel1 = ac .addLabel (self .window , "" )
43
- ac .setPosition (self .teamLabel1 , 57 , 10 )
52
+ ac .setPosition (self .teamLabel1 , 56 , 10 )
44
53
ac .setSize (self .teamLabel1 , 6 , 27 )
45
54
46
55
self .teamLabel2 = ac .addLabel (self .window , "" )
47
- ac .setPosition (self .teamLabel2 , 437 , 10 )
56
+ ac .setPosition (self .teamLabel2 , 486 , 10 )
48
57
ac .setSize (self .teamLabel2 , 6 , 27 )
49
58
59
+ # ==========================================
60
+
50
61
self .nameLabel1 = ac .addLabel (self .window , "" )
51
- ac .setPosition (self .nameLabel1 , 77 , 15 )
62
+ ac .setPosition (self .nameLabel1 , 74 , 15 )
52
63
ac .setFontSize (self .nameLabel1 , 25 )
53
64
ac .setCustomFont (self .nameLabel1 , FC .FONT_NAME , 0 , 1 )
54
65
ac .setFontColor (self .nameLabel1 , 0.86 , 0.86 , 0.86 , 1 )
55
66
ac .setFontAlignment (self .nameLabel1 , "left" )
56
67
57
68
self .nameLabel2 = ac .addLabel (self .window , "" )
58
- ac .setPosition (self .nameLabel2 , 457 , 15 )
69
+ ac .setPosition (self .nameLabel2 , 504 , 15 )
59
70
ac .setFontSize (self .nameLabel2 , 25 )
60
71
ac .setCustomFont (self .nameLabel2 , FC .FONT_NAME , 0 , 1 )
61
72
ac .setFontColor (self .nameLabel2 , 0.86 , 0.86 , 0.86 , 1 )
62
73
ac .setFontAlignment (self .nameLabel2 , "left" )
63
74
75
+ # ==========================================
76
+
64
77
self .carLabel1 = ac .addLabel (self .window , "" )
65
- ac .setPosition (self .carLabel1 , 80 , 55 )
78
+ ac .setPosition (self .carLabel1 , 88 , 55 )
66
79
ac .setSize (self .carLabel1 , 195 , 85 )
67
80
68
81
self .carLabel2 = ac .addLabel (self .window , "" )
69
- ac .setPosition (self .carLabel2 , 430 , 55 )
82
+ ac .setPosition (self .carLabel2 , 507 , 55 )
70
83
ac .setSize (self .carLabel2 , 195 , 85 )
71
84
85
+ # ==========================================
86
+
87
+ self .gapsIconLabelL = ac .addLabel (self .window , "" )
88
+ ac .setPosition (self .gapsIconLabelL , 310 , 110 )
89
+ ac .setSize (self .gapsIconLabelL , 40 , 6 )
90
+ ac .setBackgroundTexture (self .gapsIconLabelL , FC .GAPS );
91
+
92
+ self .gapsIconLabelR = ac .addLabel (self .window , "" )
93
+ ac .setPosition (self .gapsIconLabelR , 454 , 110 )
94
+ ac .setSize (self .gapsIconLabelR , 40 , 6 )
95
+ ac .setBackgroundTexture (self .gapsIconLabelR , FC .GAPS );
96
+
72
97
self .gapLabel = ac .addLabel (self .window , "" )
73
- ac .setPosition (self .gapLabel , 350 , 70 )
74
- ac .setFontSize (self .gapLabel , 30 )
98
+ ac .setPosition (self .gapLabel , 400 , 68 )
99
+ ac .setFontSize (self .gapLabel , 40 )
75
100
ac .setCustomFont (self .gapLabel , FC .FONT_NAME , 0 , 1 )
76
101
ac .setFontColor (self .gapLabel , 0.94 , 0.87 , 0.17 , 1 )
77
102
ac .setFontAlignment (self .gapLabel , "center" )
78
103
79
104
self .secondsLabel = ac .addLabel (self .window , "SECONDS" )
80
- ac .setPosition (self .secondsLabel , 350 , 105 )
105
+ ac .setPosition (self .secondsLabel , 400 , 107 )
81
106
ac .setFontSize (self .secondsLabel , 16 )
82
107
ac .setCustomFont (self .secondsLabel , FC .FONT_NAME , 0 , 1 )
83
108
ac .setFontColor (self .secondsLabel , 0.86 , 0.86 , 0.86 , 1 )
@@ -89,6 +114,7 @@ def hide(self):
89
114
ac .setVisible (self .backgroundTexture , 0 )
90
115
ac .setVisible (self .extendedBackgroundTexture , 0 )
91
116
ac .setVisible (self .rolexLabel , 0 )
117
+ ac .setVisible (self .speedometerIconLabel , 0 )
92
118
ac .setVisible (self .positionLabel1 , 0 )
93
119
ac .setVisible (self .positionLabel2 , 0 )
94
120
ac .setVisible (self .teamLabel1 , 0 )
@@ -97,6 +123,8 @@ def hide(self):
97
123
ac .setVisible (self .nameLabel2 , 0 )
98
124
ac .setVisible (self .carLabel1 , 0 )
99
125
ac .setVisible (self .carLabel2 , 0 )
126
+ ac .setVisible (self .gapsIconLabelL , 0 )
127
+ ac .setVisible (self .gapsIconLabelR , 0 )
100
128
ac .setVisible (self .gapLabel , 0 )
101
129
ac .setVisible (self .secondsLabel , 0 )
102
130
@@ -106,6 +134,7 @@ def show(self, id1, pos1, id2, pos2, time_gap):
106
134
ac .setText (self .gapLabel , time_to_string (time_gap ))
107
135
108
136
ac .setVisible (self .rolexLabel , 1 )
137
+ ac .setVisible (self .speedometerIconLabel , 1 )
109
138
ac .setVisible (self .backgroundTexture , 1 )
110
139
ac .setVisible (self .extendedBackgroundTexture , 1 )
111
140
ac .setVisible (self .positionLabel1 , 1 )
@@ -114,6 +143,8 @@ def show(self, id1, pos1, id2, pos2, time_gap):
114
143
ac .setVisible (self .nameLabel2 , 1 )
115
144
ac .setVisible (self .carLabel1 , 1 )
116
145
ac .setVisible (self .carLabel2 , 1 )
146
+ ac .setVisible (self .gapsIconLabelL , 1 )
147
+ ac .setVisible (self .gapsIconLabelR , 1 )
117
148
ac .setVisible (self .gapLabel , 1 )
118
149
ac .setVisible (self .secondsLabel , 1 )
119
150
0 commit comments