Jump to content
Korean Random
Depeche_Mod

Процент побед на танке в карусели

Recommended Posts

Подскажите как отредактировать конфиг, чтоб на иконки танка в карусели вместо целого числа (просто 52) процент побед отображался типо так: 52.34

      // Winrate.
      // Процент побед.
      {
        "enabled": true,
        "x": 158, "y": 32, "align": "right", "width": 13, "height": 13, "alpha": "{{v.winrate?|0}}",
        "src": "xvm://res/icons/carousel/wins.png"
      },
      {
        "enabled": true,
        "x": 145, "y": 28, "align": "right",
        "format": "<b><font face='$FieldFont' size='12' color='{{v.c_winrate|#CFCFCF}}'>{{v.winrate%2d~%}}</font></b>",
        "shadow": ${ "def.textFieldShadow" }
      }

 

Share this post


Link to post

Short link
Share on other sites

Попробуйте так:

"format": "<b><font face='$FieldFont' size='12' color='{{v.c_winrate|#CFCFCF}}'>{{v.winrate%.2f~%}}</font></b>",

 

  • Upvote 1

Share this post


Link to post

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

Попробуйте так:


"format": "<b><font face='$FieldFont' size='12' color='{{v.c_winrate|#CFCFCF}}'>{{v.winrate%.2f~%}}</font></b>",

 

Спасибо большое все получилось

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...