Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Widgets templates.
- * Шаблоны виджетов.
- */
- {
- "clock": {
- // Show clock in hangar.
- // Показывать часы в ангаре.
- "enabled": false, // Clock
- // layer - "bottom", "normal" (default), "top".
- // слой - "bottom", "normal" (по-умолчанию), "top".
- "layer": "normal",
- "type": "extrafield",
- "formats": [
- { // фоновая картинка
- "x": 4,
- "y": 51,
- "screenHAlign": "right",
- "format": "<img src='xvm://res/icons/clock/clockBg.png'>"
- },
- {
- "updateEvent": "ON_EVERY_SECOND",
- // Horizontal position.
- // Положение по горизонтали.
- "x": -10,
- // Vertical position.
- // Положение по вертикали.
- "y": 38,
- // Width.
- // Ширина.
- "width": 200,
- // Height.
- // Высота.
- "height": 50,
- // Horizontal alignment of field at screen ("left", "center", "right").
- // Горизонтальное выравнивание поля на экране ("left", "center", "right").
- "screenHAlign": "right",
- "shadow": {
- // false - no shadow
- // false - без тени
- "enabled": true,
- "distance": 0, // (in pixels) / offset distance / дистанция смещения
- "angle": 0, // (0.0 .. 360.0) / offset angle / угол смещения
- "color": "0x6600FF", // "0xXXXXXX" / color / цвет
- "alpha": 70, // (0 .. 100) / opacity / прозрачность
- "blur": 4, // (0.0 .. 255.0) / blur / размытие
- "strength": 2 // (0.0 .. 255.0) / intensity / интенсивность
- },
- "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, //statist
- "layer": "normal",
- "type": "extrafield",
- "formats": [
- {
- "updateEvent": "ON_MY_STAT_LOADED",
- "x": -510,
- "y": 580, //z,y
- "width": 320,
- "height": 150,
- "screenHAlign": "center",
- "shadow": { "alpha": 80, "blur": 4, "strength": 2 },
- "textFormat": { "color": "0x959688", "size": 22 },
- "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_wn8}}'>{{mystat.xwn8}} ({{mystat.wn8}})</font> {{l10n:EFF}}: <font color='{{mystat.c_eff}}'>{{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>"
- }
- ]
- },
- "booster": {
- "enabled": true, // booster
- "layer": "top",
- "type": "extrafield",
- "formats": [
- { "updateEvent": "ON_EVERY_SECOND",
- "x": 12,
- "y": 420,
- "width": 700,
- "height": 155,
- "textFormat": { "valign": "center", "color": "0xA3A397", "size": 22 },
- "format": "<textformat tabstops='[145]'>{{py:bst.name(1)}}<tab><font color='#E6BD65'>{{py:bst.leftTime(1)}}</font></textformat>\n<textformat tabstops='[145]'>{{py:bst.name(2)}}<tab><font color='#E6BD65'>{{py:bst.leftTime(2)}}</font></textformat>\n<textformat tabstops='[145]'>{{py:bst.name(3)}}<tab><font color='#E6BD65'>{{py:bst.leftTime(3)}}</font></textformat>"
- }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement