Advertisement
Guest User

Templates

a guest
Jan 31st, 2018
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. /**
  2. * Widgets templates.
  3. * Шаблоны виджетов.
  4. */
  5. {
  6. "clock": {
  7. // Show clock in hangar.
  8. // Показывать часы в ангаре.
  9. "enabled": false, // Clock
  10. // layer - "bottom", "normal" (default), "top".
  11. // слой - "bottom", "normal" (по-умолчанию), "top".
  12. "layer": "normal",
  13. "type": "extrafield",
  14. "formats": [
  15. { // фоновая картинка
  16. "x": 4,
  17. "y": 51,
  18. "screenHAlign": "right",
  19. "format": "<img src='xvm://res/icons/clock/clockBg.png'>"
  20. },
  21. {
  22. "updateEvent": "ON_EVERY_SECOND",
  23. // Horizontal position.
  24. // Положение по горизонтали.
  25. "x": -10,
  26. // Vertical position.
  27. // Положение по вертикали.
  28. "y": 38,
  29. // Width.
  30. // Ширина.
  31. "width": 200,
  32. // Height.
  33. // Высота.
  34. "height": 50,
  35. // Horizontal alignment of field at screen ("left", "center", "right").
  36. // Горизонтальное выравнивание поля на экране ("left", "center", "right").
  37. "screenHAlign": "right",
  38. "shadow": {
  39. // false - no shadow
  40. // false - без тени
  41. "enabled": true,
  42. "distance": 0, // (in pixels) / offset distance / дистанция смещения
  43. "angle": 0, // (0.0 .. 360.0) / offset angle / угол смещения
  44. "color": "0x6600FF", // "0xXXXXXX" / color / цвет
  45. "alpha": 70, // (0 .. 100) / opacity / прозрачность
  46. "blur": 4, // (0.0 .. 255.0) / blur / размытие
  47. "strength": 2 // (0.0 .. 255.0) / intensity / интенсивность
  48. },
  49. "textFormat": { "align": "right", "valign": "bottom", "color": "0x959688" },
  50. "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>"
  51. }
  52. ]
  53. },
  54. "statistics": {
  55. "enabled": false, //statist
  56. "layer": "normal",
  57. "type": "extrafield",
  58. "formats": [
  59. {
  60. "updateEvent": "ON_MY_STAT_LOADED",
  61. "x": -510,
  62. "y": 580, //z,y
  63. "width": 320,
  64. "height": 150,
  65. "screenHAlign": "center",
  66. "shadow": { "alpha": 80, "blur": 4, "strength": 2 },
  67. "textFormat": { "color": "0x959688", "size": 22 },
  68. "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>"
  69. }
  70. ]
  71. },
  72. "booster": {
  73. "enabled": true, // booster
  74. "layer": "top",
  75. "type": "extrafield",
  76. "formats": [
  77. { "updateEvent": "ON_EVERY_SECOND",
  78. "x": 12,
  79. "y": 420,
  80. "width": 700,
  81. "height": 155,
  82. "textFormat": { "valign": "center", "color": "0xA3A397", "size": 22 },
  83. "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>"
  84. }
  85. ]
  86. }
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement