Jump to content
Korean Random
Erebus9997

Marks of Excellence Percentage in Carousel?

Recommended Posts

Is there any way of showing the marks of excellence percentage in the carousel?

 

post-28144-0-05058800-1414200948_thumb.png

 

I've decided to focus on trying to get some marks and having them in the carousel would be so much easier than going into the vehicle statistics after every battle.

 

I have done some research and haven't found a way of doing this, so I'd really appreciate anything you come up with.

Share this post


Link to post

Short link
Share on other sites

@Erebus9997,

{{v.damageRating}} - damage rating in percents for marks on gun


{{v.c_damageRating}} - dynamic color for this macro


something like this:

{"x": 0, "y": 47, "format": "<font face='Tahoma' size='13' color='{{v.c_damageRating}}'>{{v.damageRating%4.2f~%}}</font>", "shadow": { "alpha": 80, "angle": 45, "blur": 2, "color": "0x000000", "distance": 0, "enabled": true, "strength": 2}}


post-7128-0-98535500-1414220688_thumb.png

Share this post


Link to post

Short link
Share on other sites

Hi there.

I'm very intrested to put these informations into my garage.

i've tried to make some modifications but that's not ok.

Here is my carousel.xc file:

/**
 * Parameters for tank carousel
 * Параметры карусели танков
 */
{
  "carousel": {
    // false - Disable customizable carousel.
    // false - Отключить настраиваемую карусель.
    "enabled": ${"various/carousel.xc":"enabled"},
    // Scale of carousel cells.
    // Масштаб ячеек карусели.
    "zoom": 0.9,
    // Number of rows at carousel.
    // Количество рядов карусели.
    "rows": ${"various/rows.xc":"rows"},
    // Spacing between carousel cells.
    // Отступ между ячейками карусели.
    "padding": {
        "horizontal": 2,   // по горизонтали
        "vertical": 2       // по вертикали
    },
    // true - show filters only if all tanks do not fit on the screen.
    // true - показывать фильтры только, если все танки не помещаются на экране.
    "alwaysShowFilters": true,
    // true - hide cell "Buy tank".
    // true - скрыть ячейку "Купить танк".
    "hideBuyTank": false,
    // true - hide cell "Buy slot".
    // true - скрыть ячейку "Купить слот".
    "hideBuySlot": false,
    // Visibility filters.
    // Видимость фильтров.
    "filters": {
      // false - hide filter.
      // false - скрыть фильтр.
      "nation":   { "enabled": true },  // nation           / страна
      "type":     { "enabled": true },  // vehicle class    / тип техники
      "level":    { "enabled": true },  // vehicle level    / уровень техники
      "favorite": { "enabled": true },  // favorite tanks   / основные танки
      "prefs":    { "enabled": true }   // other filters    / другие фильтры
    },
    // Standard cell elements.
    // Стандартные элементы ячеек.
    "fields": {
      // "visible"  - the visibility of the element / видимость элемента
      // "dx"       - horizontal shift              / смещение по горизонтали
      // "dy"       - vertical shift                / смещение по вертикали
      // "alpha"    - transparency                  / прозрачность
      // "scale"    - scale                         / масштаб
      //
      // Vehicle class icon.
      // Иконка типа техники.
      "tankType": { "visible": true, "dx": 0, "dy": 0, "alpha": 100, "scale": 1 },
      // Vehicle level.
      // Уровень техники
      "level":    { "visible": true, "dx": 0, "dy": 0, "alpha": 100, "scale": 1 },
      // todo: english description
      // Иконка не сбитого кратного опыта за первую победу в день.
      "multiXp":  { "visible": true, "dx": 0, "dy": 0, "alpha": 100, "scale": 1 },
      // todo: english description
      // Иконка не сбитого опыта за первую победу в день.
      "xp":       { "visible": true, "dx": 0, "dy": 0, "alpha": 100, "scale": 1 },
      // Vehicle name.
      // Название танка.
      "tankName": { "visible": true, "dx": 0, "dy": 0, "alpha": 100, "scale": 1 }
    },
    // Extra cell fields (see playersPanel.xc).
    // Дополнительные поля ячеек (см. playersPanel.xc).
    "extraFields": [
      // Sign of mastery.
      // Знак мастерства.
      { "x": -1, "y": 10, "format": "<img src='img://gui/maps/icons/library/proficiency/class_icons_{{v.mastery}}.png' width='23' height='23'>" }
    ]
  }
}

How can i had the Marks of Excellence Percentage ? If i put this line between {"x": -1, "y": 20, "format": "<font face='Tahoma' size='13' color='{{v.c_damageRating}}'>{{v.damageRating%4.2f~%}}</font>", "shadow": { "alpha": 80, "angle": 45, "blur": 2, "color": "0x000000", "distance": 0, "enabled": true, "strength": 2}} and ], i lose my multilines carousel ingame.

 

Edit: That's ok i've forget a simply , at the end of mastery icon :)
Thanks

Edited by guni

Share this post


Link to post

Short link
Share on other sites

try this code

"extraFields": [
      // Sign of mastery.
      // Знак мастерства.
      { "x": -1, "y": 10, "format": "<img src='img://gui/maps/icons/library/proficiency/class_icons_{{v.mastery}}.png' width='23' height='23'>" },
      // damageRating
      { "x": -1, "y": 20, "format": "<font face='Tahoma' size='13' color='{{v.c_damageRating}}'>{{v.damageRating%4.2f~%}}</font>", "shadow": { "alpha": 80, "angle": 45, "blur": 2, "color": "0x000000", "distance": 0, "enabled": true, "strength": 2}}
    ]

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.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...