-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwidgetsTemplates.xc
executable file
·77 lines (77 loc) · 2.78 KB
/
widgetsTemplates.xc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/**
* Widgets templates.
*/
{
"clock": {
// Show clock in hangar.
"enabled": true,
// layer - "bottom", "normal" (default), "top".
"layer": "normal",
"type": "extrafield",
"formats": [
{
// Background image.
"x": 4,
"y": 51,
"screenHAlign": "right",
"format": "<img src='xvm://res/icons/clock/clockBg.png'>"
},
{
"updateEvent": "ON_EVERY_SECOND",
"x": -10,
"y": 38,
"width": 200,
"height": 50,
"screenHAlign": "right",
"shadow": {
"enabled": true,
"distance": 0,
"angle": 0,
"color": "0x000000",
"alpha": 70,
"blur": 4,
"strength": 2
},
"textFormat": { "align": "right", "valign": "bottom", "color": "0x959688" },
"format": "<font face='$FieldFont'><textformat leading='-38'><font size='36'>{{py:xvm.formatDate('%H:%M')}}</font><br></textformat><textformat rightMargin='85' leading='-2'>{{py:xvm.formatDate('%A')}}<br><font size='15'>{{py:xvm.formatDate('%d %b %Y')}}</font></textformat></font>"
}
]
},
"statistics": {
"enabled": false,
"layer": "normal",
"type": "extrafield",
"formats": [
{
// Background image, left part
// Фоновая картинка, левая часть.
"x": 66,
"y": 193,
"screenHAlign": "center",
"format": "<img src='xvm://res/icons/clock/clockBg.png' width='160' height='80'>"
},
{
// Background image, right part
// Фоновая картинка, правая часть.
"x": 390,
"y": 193,
"screenHAlign": "center",
"scaleX": -1,
"format": "<img src='xvm://res/icons/clock/clockBg.png' width='160' height='80'>"
},
{
// Text block.
// Текстовый блок.
"updateEvent": "ON_MY_STAT_LOADED",
"x": 185,
"y": 198,
"width": 320,
"height": 150,
"screenHAlign": "center",
"shadow": { "alpha": 80, "blur": 4, "strength": 2 },
"textFormat": { "color": "0x959688", "size": 15 },
"format": "<font size='13'>{{l10n:General stats}} (<font color='#F9F1BC'>{{py:xvm.formatDate('%Y-%m-%d')}}</font>)</font>\n{{l10n:WN8}}: <font color='{{mystat.c_xwn8}}'>{{mystat.xwn8}} ({{mystat.wn8}})</font> {{l10n:EFF}}: <font color='{{mystat.c_xeff}}'>{{mystat.xeff}} ({{mystat.eff}})</font>\n{{l10n:Avg level}}: <font color='{{mystat.c_avglvl}}'>{{mystat.avglvl%.2f}}</font>\n<font size='13'>{{l10n:Wins}}: <font color='{{mystat.c_winrate}}'>{{mystat.winrate%.2f~%}}</font> ({{py:winrate_next(0.5)}} / {{py:winrate_next(1)}})</font>"
}
]
}
}