Jump to content
Korean Random
Sign in to follow this  
LONGSiZE

Помогите настроить карусель танков, добавить количество боев на танке

Recommended Posts

Проблема следующая хочу добавить в свой конфиг карусели танков(carouselNormal) количество боев на технике из другого конфига(написан ниже) но там по другому прописаны параметры. Помогите перевести параметр количество боев на технике, чтоб соответствовали в моему конфигу карусели танков, добавьте под средним уроном на танке, я потом сам подправлю размещение. Файлы своего конфига карусели прикрепил к теме.

* Parameters for tank carousel
* Параметры карусели танков
*/
{
  "carousel": {
    "enabled": true,
    "normal": {
       "gap": 5,
       "fields": {
         "tankType": { "enabled": false },
         "level":    { "enabled": false }
         },
       "extraFields": [
       // Средний урон. // color='#DE003C'
         { "x": 0,  "y": -1, "format": "{{v.tdb?<img src='img://gui/maps/icons/tankmen/skills/big/gunner_sniper.png' width='20' height='20'>}}" },
         { "x": 20, "y": 1,  "format": "<font size='12' color='{{v.c_xtdb|#DDDDDD}}' face='$FieldFont'>{{v.tdb%.01f~|}}</font>", "shadow": { "distance": 0, "angle": 90, "color": "0x000000", "alpha": 80, "blur": 2, "strength": 3 } },
       // Процент побед.
         { "x": 1,  "y": 15, "format": "{{v.winrate?<img src='img://gui/maps/icons/buttons/smallAttackIcon.png' width='18' height='18'>}}" },
         { "x": 20, "y": 16, "format": "<font face='$FieldFont' size='12' color='{{v.c_winrate}}'>{{v.winrate%.01f~%|}}</font>", "shadow": { "distance": 0, "angle": 90, "color": "0x000000", "alpha": 80, "blur": 2, "strength": 3 } },
       // Количество боев.
         { "x": 1,  "y": 28, "format": "{{v.battles?<img src='img://gui/maps/icons/library/BattleResultIcon-1.png' width='16' height='16'>}}" },
         { "x": 20, "y": 31, "format": "<font face='$FieldFont' size='13' color='#DDDDDD'>{{v.battles}}</font>", "shadow": { "distance": 0, "angle": 90, "color": "0x000000", "alpha": 80, "blur": 2, "strength": 3 } },

       // Эффективность на танке.
         { "x": 1,  "y": 47, "format": "{{v.xte?<img src='img://gui/maps/icons/tankmen/skills/big/brotherhood.png' width='17' height='17'>}}"},
         { "x": 20, "y": 46, "format": "<font face='$FieldFont' size='12' color='{{v.c_xte}}'>{{v.xte%-2d}}</font>", "shadow": { "distance": 0, "angle": 90, "color": "0x000000", "alpha": 80, "blur": 2, "strength": 3 } },
       // Знак мастерства.
         { "x": 130,"y": 50, "format": "<img src='img://gui/maps/icons/library/proficiency/class_icons_{{v.mastery}}.png' width='30' height='30'>" },
       // Отметки на стволе.
         { "x": 2,  "y": 74, "format": "{{v.marksOnGun>0?<img src='cfg://RealVoid/images/hangarGunMarks/gun_{{v.nation}}_{{v.marksOnGun}}.png' width='69' height='23'>}}" },
         { "x": 3,  "y": 79, "format": "<font face='$FieldFont' size='12' color='#DDDDDD'>{{v.damageRating%.01f~%|}}</font>", "shadow": { "distance": 0, "angle": 90, "color": "0x000000", "alpha": 80, "blur": 2, "strength": 3 } }//,
       ]
     },
    //"hideBuyTank": false,
    //"hideBuySlot": false,
    "showTotalSlots": true,
    //"showUsedSlots": true,
    //"nations_order": ["ussr", "germany", "usa", "france", "uk", "china", "japan", "czech"],
    //"types_order":   ["lightTank", "mediumTank", "heavyTank", "AT-SPG", "SPG"],
    // Критерии сортировки танков, доступные значения: (минус = в обратном порядке)
    // "nation", "type", "level", "-level", "maxBattleTier", "-maxBattleTier", "premium", "-premium",
    // "winRate", "-winRate", "markOfMastery", "-markOfMastery", "xtdb", "-xtdb", "xte", "-xte",
    // "damageRating", "-damageRating", "marksOnGun", "-marksOnGun"
    "sorting_criteria": ["nation", "type", "level"]
  }

carouselNormal.xc

carousel.rar

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.
Note: Your post will require moderator approval before it will be visible.

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...