Jump to content
Korean Random
Sign in to follow this  
Partizan

widgetsTemplates.xc

Recommended Posts

А можно сюда добавить статистику по выбранному танку, чтоб не разглядывать в карусели и не лазить в достижения?(кол-во боев и ср. урон)

{{v.battles}}  {{v.tdb}}      не работают.

 

 

  "statistics": {
    "enabled": true,
    "layer": "normal",
    "type": "extrafield",
    "formats": [
      { // background image, left part
        // фоновая картинка, левая часть.
        "x": 346,
        "y": 100,
        "screenHAlign": "center",
        "format": "<img src='xvm://res/icons/clock/clockBg.png' width='160' height='80'>"
      },
      { // background image, right part
        // фоновая картинка, правая часть.
        "x": 670,
        "y": 100,
        "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": 465,
        "y": 105,
        "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_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>"
      }
    ]
  }

 

shot_009.jpg

Edited by Partizan

Share this post


Link to post

Short link
Share on other sites

Давно планирую добавить всю статистику по танку с кнопками (общая, рандом, ГК и т. д.), но всё не могу собраться с силами. 

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
5 минут назад, ktulho сказал:

Давно планирую добавить всю статистику по танку с кнопками (общая, рандом, ГК и т. д.), но всё не могу собраться с силами. 

 

Да хотя бы рандомную для начала.

 

Share this post


Link to post

Short link
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...