Jump to content
Korean Random
o-0-0-0

как включить процент побед танка в ангаре

Recommended Posts

Всю голову сломал так и не могу найти где редактировать данный параметр что бы сделать вот так .

Помогите !

За ранее спасибо !

post-19497-0-88390300-1411742461.jpg

post-19497-0-88390300-1411742461_thumb.jpg

Share this post


Link to post

Short link
Share on other sites

Эта фишка со сборки модов от ПРОтанки. И ты что-то путаешь. 
Обращайся к создателям сборки  :heh:

  • Downvote 7

Share this post


Link to post

Short link
Share on other sites
Помогите !

знак классности:

 { "x": -1.3, "y": 10, "format": "<img src='img://gui/maps/icons/library/proficiency/class_icons_{{v.mastery}}.png' width='23' height='23'>" }, 

процент побед:

{ "x": 20, "y": 12,  "format": "<font  color='{{v.c_winrate}}'>{{v.winrate%.2d~%}}</font>", "shadow": {} }, 

уровни боев:

 { "x": 54, "y": -2,  "align": "center",  "format": "<font  color='#777777'>{{v.battletiermin}}</font>..<font  color='#D9A300'>{{v.battletiermax}}</font>", "shadow": {} }, 

Все это вставляешь в extraFields в carousel.хс

Синтаксис extraFields :

// Set of formats for left panel

          // Набор форматов для левой панели

          // example:

          // "format": [

          //   // simple format (just a text)

          //   "{{nick}}",

          //   "<img src='xvm://res/img/panel-bg-l-{{alive|dead}}.png' width='318' height='28'>",

          //   // extended format

          //   { "x": 20, "y": 10, "border": 1, "borderColor": "0xFFFFFF", "format": "{{nick}}" },

          //   { "x": 200, "src": "xvm://res/contour/{{vehiclename}}.png" }

          // ]

          //

          // types of formats available for extended format:

          //   - MovieClip (for loading image)

          //   - TextField (for writing text and creating rectangles)

          // if "src" field is present, MovieClip format will be used

          // if "src" field is absent, TextField format will be used

          //

          // fields available for extended format:

          //   "src" - resource path ("xvm://res/contour/{{vehiclename}}.png")

          //   "format" - text format (macros allowed)

          //

          // fields available for both MovieClip and TextField formats:

          //   "x" - x position (macros allowed)

          //   "y" - y position (macros allowed)

          //   "w" - width (macros allowed)

          //   "h" - height (macros allowed)

          //   "alpha" - transparency in percents (0..100) (macros allowed)

          //   "rotation" - rotation in degrees (0..360) (macros allowed)

          //   "align" - horizontal alignment ("left", "center", "right")

          //      for left panel default value is "left"

          //      for right panel default value is "right"

          //

          // fields available for TextField format only:

          //   "valign" - vertical alignment ("top", "center", "bottom")

          //      default value is "top"

          //   "borderColor" - if set, draw border with specified color (macros allowed)

          //   "bgColor" - if set, draw background with specified color (macros allowed)

          //   "antiAliasType" - anti aliasing mode ("advanced" or "normal")

          //   "shadow": {

          //     "distance" (in pixels)

          //     "angle"    (0.0 .. 360.0)

          //     "color"    "0xXXXXXX"

          //     "alpha"    (0.0 .. 1.0)

          //     "blur"     (0.0 .. 255.0)

          //     "strength" (0.0 .. 255.0)

          //    }

          //

          // * all fields are optional

          //

макросы для карусели танков:

Macros available in hangar

Legend:

  TC - tank carousel

  SQ - squad window

  'X' - available

  ' ' - not available (can return wrong value - '', 'NaN', 'undefined', ...)

  '.' - TODO

  '-' - Obsoleted (will be replaced with other macro)

┌────────────────────────────┬───┬───┬─────────────────────────────────

│ macro                      │ TC│ SQ│ Description

├────────────────────────────┼───┼───┼─────────────────────────────────

│ {{v.vehId}}                │ X │ . │ vehicle id

│ {{v.battles}}              │ X │ . │ total battles count for current vehicle

│ {{v.c_battles}}            │ X │ . │ color for battles count

│ {{v.kb}}                   │ X │ . │ number of kilo-battles for current vehicle

│ {{v.hb}}                   │ X │ . │ number of hecto-battles for current vehicle (hecto = 100)

│ {{v.wins}}                 │ X │ . │ total wins count for current vehicle

│ {{v.mastery}}              │ X │ . │ mastery sign for current vehicle

│ {{v.xp}}                   │ X │ . │ average XP gained on current vehicle

│ {{v.fullname}}             │ X │ . │ localized full vehicle name

│ {{v.name}}                 │ X │ . │ localized compact vehicle name

│ {{v.sysname}}              │ X │ . │ vehicle system name (usa-M24_Chaffee)

│ {{v.shortname}}            │ X │ . │ localized short vehicle name

│ {{v.type}}                 │ X │ . │ vehicle type (text substitution from config)

│ {{v.c_type}}               │ X │ . │ color for vehicle type

│ {{v.level}}                │ X │ . │ vehicle level (Arabic numerals)

│ {{v.rlevel}}               │ X │ . │ vehicle level (Roman numerals)

│ {{v.battletiermin}}        │ X │ . │ minimal vehicle battle tier

│ {{v.battletiermax}}        │ X │ . │ maximal vehicle battle tier

│ {{v.nation}}               │ X │ . │ vehicle nation

│ {{v.premium}}              │ X │ . │ 'premium' for premium, empty for normal vehicle

│ {{v.elite}}                │ X │ . │ 'elite' for elite, empty for normal vehicle

│ {{v.maxHP}}                │ X │ . │ maximum vehicle health points

│ {{v.winrate}}              │ X │ . │ vehicle win rate (percent of wins on this vehicle)

│ {{v.hitsRatio}}            │ X │ . │ percent of hits

│ {{v.c_winrate}}            │ X │ . │ color for win rate

│ {{v.tdb}}                  │ X │ . │ average damage - damage / battles

│ {{v.c_tdb}}                │ X │ . │ dynamic color for this macro

│ {{v.tdv}}                  │ X │ . │ average damage efficiency - damage / (battles * maxHP)

│ {{v.c_tdv}}                │ X │ . │ dynamic color for this macro

│ {{v.tfb}}                  │ X │ . │ average frags per battle

│ {{v.c_tfb}}                │ X │ . │ dynamic color for this macro

│ {{v.tsb}}                  │ X │ . │ average number of spotted enemies per battle

│ {{v.c_tsb}}                │ X │ . │ dynamic color for this macro

│ {{v.wn8expd}}              │ X │ . │ WN8 expected tank damage

│ {{v.wn8effd}}              │ X │ . │ WN8 effective tank damage (avgdmg / expected_dmg)

│ {{v.c_wn8effd}}            │ X │ . │ dynamic color for this macro

│ {{v.marksOnGun}}           │ X │ . │ marks on gun

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

│ {{v.c_damageRating}}       │ X │ . │ dynamic color for this macro

│ {{v.teff}}, {{v.e}}        │ . │ . │ player's per-vehicle efficiency: http://www.koreanrandom.com/forum/topic/1643-

│ {{v.c_e}}                  │ . │ . │ dynamic color for this macro

│ {{v.equipment1}}           │ . │ . │ small icon of equipment in 1st slot

│ {{v.equipment2}}           │ . │ . │ small icon of equipment in 2nd slot

│ {{v.equipment3}}           │ . │ . │ small icon of equipment in 3rd slot

│ {{v.consumable1}}          │ . │ . │ small icon of consumable in 1st slot

│ {{v.consumable2}}          │ . │ . │ small icon of consumable in 2nd slot

│ {{v.consumable3}}          │ . │ . │ small icon of consumable in 3rd slot

│ {{v.xpForTop}}             │ . │ . │ XP points required for top tank

│ {{v.xpForExpert}}          │ . │ . │ XP points required for expert tank

│ {{v.shootRange}}           │ . │ . │ actual shoot range

│ {{v.viewRange}}            │ . │ . │ actual view range

│ {{v.dpm}}                  │ . │ . │ actual damage per minute

│ {{v.gunAvgDamage}}         │ . │ . │ average damage for current gun AP/CR/HE

│ {{v.gunAvgHit}}            │ . │ . │ average penetration for current gun AP/CR/HE

│ {{v.gunDispersion}}        │ . │ . │ base dispersion at 100 m for current gun

│ {{v.gunAimingTime}}        │ . │ . │ base aiming time for current gun

│ {{l10n:ID}}                │ . │ . │ localizated text, see en.xc for id

└────────────────────────────┴───┴───┴─────────────────────────────────

Edited by Hawk1983x
  • Upvote 4

Share this post


Link to post

Short link
Share on other sites

знак классности:

 { "x": -1.3, "y": 10, "format": "<img src='img://gui/maps/icons/library/proficiency/class_icons_{{v.mastery}}.png' width='23' height='23'>" }, 

процент побед:

{ "x": 20, "y": 12,  "format": "<font  color='{{v.c_winrate}}'>{{v.winrate%.2d~%}}</font>", "shadow": {} }, 

уровни боев:

 { "x": 54, "y": -2, "valign": "left", "align": "center",  "format": "<font  color='#777777'>{{v.battletiermin}}</font>..<font  color='#D9A300'>{{v.battletiermax}}</font>", "shadow": {} }, 

Все это вставляешь в extraFields в carousel.хс

Синтаксис extraFields :

// Set of formats for left panel

          // Набор форматов для левой панели

          // example:

          // "format": [

          //   // simple format (just a text)

          //   "{{nick}}",

          //   "<img src='xvm://res/img/panel-bg-l-{{alive|dead}}.png' width='318' height='28'>",

          //   // extended format

          //   { "x": 20, "y": 10, "border": 1, "borderColor": "0xFFFFFF", "format": "{{nick}}" },

          //   { "x": 200, "src": "xvm://res/contour/{{vehiclename}}.png" }

          // ]

          //

          // types of formats available for extended format:

          //   - MovieClip (for loading image)

          //   - TextField (for writing text and creating rectangles)

          // if "src" field is present, MovieClip format will be used

          // if "src" field is absent, TextField format will be used

          //

          // fields available for extended format:

          //   "src" - resource path ("xvm://res/contour/{{vehiclename}}.png")

          //   "format" - text format (macros allowed)

          //

          // fields available for both MovieClip and TextField formats:

          //   "x" - x position (macros allowed)

          //   "y" - y position (macros allowed)

          //   "w" - width (macros allowed)

          //   "h" - height (macros allowed)

          //   "alpha" - transparency in percents (0..100) (macros allowed)

          //   "rotation" - rotation in degrees (0..360) (macros allowed)

          //   "align" - horizontal alignment ("left", "center", "right")

          //      for left panel default value is "left"

          //      for right panel default value is "right"

          //

          // fields available for TextField format only:

          //   "valign" - vertical alignment ("top", "center", "bottom")

          //      default value is "top"

          //   "borderColor" - if set, draw border with specified color (macros allowed)

          //   "bgColor" - if set, draw background with specified color (macros allowed)

          //   "antiAliasType" - anti aliasing mode ("advanced" or "normal")

          //   "shadow": {

          //     "distance" (in pixels)

          //     "angle"    (0.0 .. 360.0)

          //     "color"    "0xXXXXXX"

          //     "alpha"    (0.0 .. 1.0)

          //     "blur"     (0.0 .. 255.0)

          //     "strength" (0.0 .. 255.0)

          //    }

          //

          // * all fields are optional

          //

макросы для карусели танков:

Macros available in hangar

Legend:

  TC - tank carousel

  SQ - squad window

  'X' - available

  ' ' - not available (can return wrong value - '', 'NaN', 'undefined', ...)

  '.' - TODO

  '-' - Obsoleted (will be replaced with other macro)

┌────────────────────────────┬───┬───┬─────────────────────────────────

│ macro                      │ TC│ SQ│ Description

├────────────────────────────┼───┼───┼─────────────────────────────────

│ {{v.vehId}}                │ X │ . │ vehicle id

│ {{v.battles}}              │ X │ . │ total battles count for current vehicle

│ {{v.c_battles}}            │ X │ . │ color for battles count

│ {{v.kb}}                   │ X │ . │ number of kilo-battles for current vehicle

│ {{v.hb}}                   │ X │ . │ number of hecto-battles for current vehicle (hecto = 100)

│ {{v.wins}}                 │ X │ . │ total wins count for current vehicle

│ {{v.mastery}}              │ X │ . │ mastery sign for current vehicle

│ {{v.xp}}                   │ X │ . │ average XP gained on current vehicle

│ {{v.fullname}}             │ X │ . │ localized full vehicle name

│ {{v.name}}                 │ X │ . │ localized compact vehicle name

│ {{v.sysname}}              │ X │ . │ vehicle system name (usa-M24_Chaffee)

│ {{v.shortname}}            │ X │ . │ localized short vehicle name

│ {{v.type}}                 │ X │ . │ vehicle type (text substitution from config)

│ {{v.c_type}}               │ X │ . │ color for vehicle type

│ {{v.level}}                │ X │ . │ vehicle level (Arabic numerals)

│ {{v.rlevel}}               │ X │ . │ vehicle level (Roman numerals)

│ {{v.battletiermin}}        │ X │ . │ minimal vehicle battle tier

│ {{v.battletiermax}}        │ X │ . │ maximal vehicle battle tier

│ {{v.nation}}               │ X │ . │ vehicle nation

│ {{v.premium}}              │ X │ . │ 'premium' for premium, empty for normal vehicle

│ {{v.elite}}                │ X │ . │ 'elite' for elite, empty for normal vehicle

│ {{v.maxHP}}                │ X │ . │ maximum vehicle health points

│ {{v.winrate}}              │ X │ . │ vehicle win rate (percent of wins on this vehicle)

│ {{v.hitsRatio}}            │ X │ . │ percent of hits

│ {{v.c_winrate}}            │ X │ . │ color for win rate

│ {{v.tdb}}                  │ X │ . │ average damage - damage / battles

│ {{v.c_tdb}}                │ X │ . │ dynamic color for this macro

│ {{v.tdv}}                  │ X │ . │ average damage efficiency - damage / (battles * maxHP)

│ {{v.c_tdv}}                │ X │ . │ dynamic color for this macro

│ {{v.tfb}}                  │ X │ . │ average frags per battle

│ {{v.c_tfb}}                │ X │ . │ dynamic color for this macro

│ {{v.tsb}}                  │ X │ . │ average number of spotted enemies per battle

│ {{v.c_tsb}}                │ X │ . │ dynamic color for this macro

│ {{v.wn8expd}}              │ X │ . │ WN8 expected tank damage

│ {{v.wn8effd}}              │ X │ . │ WN8 effective tank damage (avgdmg / expected_dmg)

│ {{v.c_wn8effd}}            │ X │ . │ dynamic color for this macro

│ {{v.marksOnGun}}           │ X │ . │ marks on gun

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

│ {{v.c_damageRating}}       │ X │ . │ dynamic color for this macro

│ {{v.teff}}, {{v.e}}        │ . │ . │ player's per-vehicle efficiency: http://www.koreanrandom.com/forum/topic/1643-

│ {{v.c_e}}                  │ . │ . │ dynamic color for this macro

│ {{v.equipment1}}           │ . │ . │ small icon of equipment in 1st slot

│ {{v.equipment2}}           │ . │ . │ small icon of equipment in 2nd slot

│ {{v.equipment3}}           │ . │ . │ small icon of equipment in 3rd slot

│ {{v.consumable1}}          │ . │ . │ small icon of consumable in 1st slot

│ {{v.consumable2}}          │ . │ . │ small icon of consumable in 2nd slot

│ {{v.consumable3}}          │ . │ . │ small icon of consumable in 3rd slot

│ {{v.xpForTop}}             │ . │ . │ XP points required for top tank

│ {{v.xpForExpert}}          │ . │ . │ XP points required for expert tank

│ {{v.shootRange}}           │ . │ . │ actual shoot range

│ {{v.viewRange}}            │ . │ . │ actual view range

│ {{v.dpm}}                  │ . │ . │ actual damage per minute

│ {{v.gunAvgDamage}}         │ . │ . │ average damage for current gun AP/CR/HE

│ {{v.gunAvgHit}}            │ . │ . │ average penetration for current gun AP/CR/HE

│ {{v.gunDispersion}}        │ . │ . │ base dispersion at 100 m for current gun

│ {{v.gunAimingTime}}        │ . │ . │ base aiming time for current gun

│ {{l10n:ID}}                │ . │ . │ localizated text, see en.xc for id

└────────────────────────────┴───┴───┴─────────────────────────────────

ОГРОМНОЕ СПАСИБО !

Разобрался что к чему , добавил carousel.хс и разобрался .

Share this post


Link to post

Short link
Share on other sites

знак классности:

 { "x": -1.3, "y": 10, "format": "<img src='img://gui/maps/icons/library/proficiency/class_icons_{{v.mastery}}.png' width='23' height='23'>" }, 

процент побед:

{ "x": 20, "y": 12,  "format": "<font  color='{{v.c_winrate}}'>{{v.winrate%.2d~%}}</font>", "shadow": {} }, 

уровни боев:

 { "x": 54, "y": -2, "valign": "left", "align": "center",  "format": "<font  color='#777777'>{{v.battletiermin}}</font>..<font  color='#D9A300'>{{v.battletiermax}}</font>", "shadow": {} }, 

Все это вставляешь в extraFields в carousel.хс

Синтаксис extraFields :

// Set of formats for left panel

          // Набор форматов для левой панели

          // example:

          // "format": [

          //   // simple format (just a text)

          //   "{{nick}}",

          //   "<img src='xvm://res/img/panel-bg-l-{{alive|dead}}.png' width='318' height='28'>",

          //   // extended format

          //   { "x": 20, "y": 10, "border": 1, "borderColor": "0xFFFFFF", "format": "{{nick}}" },

          //   { "x": 200, "src": "xvm://res/contour/{{vehiclename}}.png" }

          // ]

          //

          // types of formats available for extended format:

          //   - MovieClip (for loading image)

          //   - TextField (for writing text and creating rectangles)

          // if "src" field is present, MovieClip format will be used

          // if "src" field is absent, TextField format will be used

          //

          // fields available for extended format:

          //   "src" - resource path ("xvm://res/contour/{{vehiclename}}.png")

          //   "format" - text format (macros allowed)

          //

          // fields available for both MovieClip and TextField formats:

          //   "x" - x position (macros allowed)

          //   "y" - y position (macros allowed)

          //   "w" - width (macros allowed)

          //   "h" - height (macros allowed)

          //   "alpha" - transparency in percents (0..100) (macros allowed)

          //   "rotation" - rotation in degrees (0..360) (macros allowed)

          //   "align" - horizontal alignment ("left", "center", "right")

          //      for left panel default value is "left"

          //      for right panel default value is "right"

          //

          // fields available for TextField format only:

          //   "valign" - vertical alignment ("top", "center", "bottom")

          //      default value is "top"

          //   "borderColor" - if set, draw border with specified color (macros allowed)

          //   "bgColor" - if set, draw background with specified color (macros allowed)

          //   "antiAliasType" - anti aliasing mode ("advanced" or "normal")

          //   "shadow": {

          //     "distance" (in pixels)

          //     "angle"    (0.0 .. 360.0)

          //     "color"    "0xXXXXXX"

          //     "alpha"    (0.0 .. 1.0)

          //     "blur"     (0.0 .. 255.0)

          //     "strength" (0.0 .. 255.0)

          //    }

          //

          // * all fields are optional

          //

макросы для карусели танков:

Macros available in hangar

Legend:

  TC - tank carousel

  SQ - squad window

  'X' - available

  ' ' - not available (can return wrong value - '', 'NaN', 'undefined', ...)

  '.' - TODO

  '-' - Obsoleted (will be replaced with other macro)

┌────────────────────────────┬───┬───┬─────────────────────────────────

│ macro                      │ TC│ SQ│ Description

├────────────────────────────┼───┼───┼─────────────────────────────────

│ {{v.vehId}}                │ X │ . │ vehicle id

│ {{v.battles}}              │ X │ . │ total battles count for current vehicle

│ {{v.c_battles}}            │ X │ . │ color for battles count

│ {{v.kb}}                   │ X │ . │ number of kilo-battles for current vehicle

│ {{v.hb}}                   │ X │ . │ number of hecto-battles for current vehicle (hecto = 100)

│ {{v.wins}}                 │ X │ . │ total wins count for current vehicle

│ {{v.mastery}}              │ X │ . │ mastery sign for current vehicle

│ {{v.xp}}                   │ X │ . │ average XP gained on current vehicle

│ {{v.fullname}}             │ X │ . │ localized full vehicle name

│ {{v.name}}                 │ X │ . │ localized compact vehicle name

│ {{v.sysname}}              │ X │ . │ vehicle system name (usa-M24_Chaffee)

│ {{v.shortname}}            │ X │ . │ localized short vehicle name

│ {{v.type}}                 │ X │ . │ vehicle type (text substitution from config)

│ {{v.c_type}}               │ X │ . │ color for vehicle type

│ {{v.level}}                │ X │ . │ vehicle level (Arabic numerals)

│ {{v.rlevel}}               │ X │ . │ vehicle level (Roman numerals)

│ {{v.battletiermin}}        │ X │ . │ minimal vehicle battle tier

│ {{v.battletiermax}}        │ X │ . │ maximal vehicle battle tier

│ {{v.nation}}               │ X │ . │ vehicle nation

│ {{v.premium}}              │ X │ . │ 'premium' for premium, empty for normal vehicle

│ {{v.elite}}                │ X │ . │ 'elite' for elite, empty for normal vehicle

│ {{v.maxHP}}                │ X │ . │ maximum vehicle health points

│ {{v.winrate}}              │ X │ . │ vehicle win rate (percent of wins on this vehicle)

│ {{v.hitsRatio}}            │ X │ . │ percent of hits

│ {{v.c_winrate}}            │ X │ . │ color for win rate

│ {{v.tdb}}                  │ X │ . │ average damage - damage / battles

│ {{v.c_tdb}}                │ X │ . │ dynamic color for this macro

│ {{v.tdv}}                  │ X │ . │ average damage efficiency - damage / (battles * maxHP)

│ {{v.c_tdv}}                │ X │ . │ dynamic color for this macro

│ {{v.tfb}}                  │ X │ . │ average frags per battle

│ {{v.c_tfb}}                │ X │ . │ dynamic color for this macro

│ {{v.tsb}}                  │ X │ . │ average number of spotted enemies per battle

│ {{v.c_tsb}}                │ X │ . │ dynamic color for this macro

│ {{v.wn8expd}}              │ X │ . │ WN8 expected tank damage

│ {{v.wn8effd}}              │ X │ . │ WN8 effective tank damage (avgdmg / expected_dmg)

│ {{v.c_wn8effd}}            │ X │ . │ dynamic color for this macro

│ {{v.marksOnGun}}           │ X │ . │ marks on gun

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

│ {{v.c_damageRating}}       │ X │ . │ dynamic color for this macro

│ {{v.teff}}, {{v.e}}        │ . │ . │ player's per-vehicle efficiency: http://www.koreanrandom.com/forum/topic/1643-

│ {{v.c_e}}                  │ . │ . │ dynamic color for this macro

│ {{v.equipment1}}           │ . │ . │ small icon of equipment in 1st slot

│ {{v.equipment2}}           │ . │ . │ small icon of equipment in 2nd slot

│ {{v.equipment3}}           │ . │ . │ small icon of equipment in 3rd slot

│ {{v.consumable1}}          │ . │ . │ small icon of consumable in 1st slot

│ {{v.consumable2}}          │ . │ . │ small icon of consumable in 2nd slot

│ {{v.consumable3}}          │ . │ . │ small icon of consumable in 3rd slot

│ {{v.xpForTop}}             │ . │ . │ XP points required for top tank

│ {{v.xpForExpert}}          │ . │ . │ XP points required for expert tank

│ {{v.shootRange}}           │ . │ . │ actual shoot range

│ {{v.viewRange}}            │ . │ . │ actual view range

│ {{v.dpm}}                  │ . │ . │ actual damage per minute

│ {{v.gunAvgDamage}}         │ . │ . │ average damage for current gun AP/CR/HE

│ {{v.gunAvgHit}}            │ . │ . │ average penetration for current gun AP/CR/HE

│ {{v.gunDispersion}}        │ . │ . │ base dispersion at 100 m for current gun

│ {{v.gunAimingTime}}        │ . │ . │ base aiming time for current gun

│ {{l10n:ID}}                │ . │ . │ localizated text, see en.xc for id

└────────────────────────────┴───┴───┴─────────────────────────────────

 

Вай спасибо тебе. Вставил как описано. Всё получилось. Мелочь, а приятно :ok:

Share this post


Link to post

Short link
Share on other sites

знак классности:

 { "x": -1.3, "y": 10, "format": "<img src='img://gui/maps/icons/library/proficiency/class_icons_{{v.mastery}}.png' width='23' height='23'>" }, 

процент побед:

{ "x": 20, "y": 12,  "format": "<font  color='{{v.c_winrate}}'>{{v.winrate%.2d~%}}</font>", "shadow": {} }, 

уровни боев:

 { "x": 54, "y": -2, "valign": "left", "align": "center",  "format": "<font  color='#777777'>{{v.battletiermin}}</font>..<font  color='#D9A300'>{{v.battletiermax}}</font>", "shadow": {} }, 

Все это вставляешь в extraFields в carousel.хс

Синтаксис extraFields :

// Set of formats for left panel

          // Набор форматов для левой панели

          // example:

          // "format": [

          //   // simple format (just a text)

          //   "{{nick}}",

          //   "<img src='xvm://res/img/panel-bg-l-{{alive|dead}}.png' width='318' height='28'>",

          //   // extended format

          //   { "x": 20, "y": 10, "border": 1, "borderColor": "0xFFFFFF", "format": "{{nick}}" },

          //   { "x": 200, "src": "xvm://res/contour/{{vehiclename}}.png" }

          // ]

          //

          // types of formats available for extended format:

          //   - MovieClip (for loading image)

          //   - TextField (for writing text and creating rectangles)

          // if "src" field is present, MovieClip format will be used

          // if "src" field is absent, TextField format will be used

          //

          // fields available for extended format:

          //   "src" - resource path ("xvm://res/contour/{{vehiclename}}.png")

          //   "format" - text format (macros allowed)

          //

          // fields available for both MovieClip and TextField formats:

          //   "x" - x position (macros allowed)

          //   "y" - y position (macros allowed)

          //   "w" - width (macros allowed)

          //   "h" - height (macros allowed)

          //   "alpha" - transparency in percents (0..100) (macros allowed)

          //   "rotation" - rotation in degrees (0..360) (macros allowed)

          //   "align" - horizontal alignment ("left", "center", "right")

          //      for left panel default value is "left"

          //      for right panel default value is "right"

          //

          // fields available for TextField format only:

          //   "valign" - vertical alignment ("top", "center", "bottom")

          //      default value is "top"

          //   "borderColor" - if set, draw border with specified color (macros allowed)

          //   "bgColor" - if set, draw background with specified color (macros allowed)

          //   "antiAliasType" - anti aliasing mode ("advanced" or "normal")

          //   "shadow": {

          //     "distance" (in pixels)

          //     "angle"    (0.0 .. 360.0)

          //     "color"    "0xXXXXXX"

          //     "alpha"    (0.0 .. 1.0)

          //     "blur"     (0.0 .. 255.0)

          //     "strength" (0.0 .. 255.0)

          //    }

          //

          // * all fields are optional

          //

макросы для карусели танков:

Macros available in hangar

Legend:

  TC - tank carousel

  SQ - squad window

  'X' - available

  ' ' - not available (can return wrong value - '', 'NaN', 'undefined', ...)

  '.' - TODO

  '-' - Obsoleted (will be replaced with other macro)

┌────────────────────────────┬───┬───┬─────────────────────────────────

│ macro                      │ TC│ SQ│ Description

├────────────────────────────┼───┼───┼─────────────────────────────────

│ {{v.vehId}}                │ X │ . │ vehicle id

│ {{v.battles}}              │ X │ . │ total battles count for current vehicle

│ {{v.c_battles}}            │ X │ . │ color for battles count

│ {{v.kb}}                   │ X │ . │ number of kilo-battles for current vehicle

│ {{v.hb}}                   │ X │ . │ number of hecto-battles for current vehicle (hecto = 100)

│ {{v.wins}}                 │ X │ . │ total wins count for current vehicle

│ {{v.mastery}}              │ X │ . │ mastery sign for current vehicle

│ {{v.xp}}                   │ X │ . │ average XP gained on current vehicle

│ {{v.fullname}}             │ X │ . │ localized full vehicle name

│ {{v.name}}                 │ X │ . │ localized compact vehicle name

│ {{v.sysname}}              │ X │ . │ vehicle system name (usa-M24_Chaffee)

│ {{v.shortname}}            │ X │ . │ localized short vehicle name

│ {{v.type}}                 │ X │ . │ vehicle type (text substitution from config)

│ {{v.c_type}}               │ X │ . │ color for vehicle type

│ {{v.level}}                │ X │ . │ vehicle level (Arabic numerals)

│ {{v.rlevel}}               │ X │ . │ vehicle level (Roman numerals)

│ {{v.battletiermin}}        │ X │ . │ minimal vehicle battle tier

│ {{v.battletiermax}}        │ X │ . │ maximal vehicle battle tier

│ {{v.nation}}               │ X │ . │ vehicle nation

│ {{v.premium}}              │ X │ . │ 'premium' for premium, empty for normal vehicle

│ {{v.elite}}                │ X │ . │ 'elite' for elite, empty for normal vehicle

│ {{v.maxHP}}                │ X │ . │ maximum vehicle health points

│ {{v.winrate}}              │ X │ . │ vehicle win rate (percent of wins on this vehicle)

│ {{v.hitsRatio}}            │ X │ . │ percent of hits

│ {{v.c_winrate}}            │ X │ . │ color for win rate

│ {{v.tdb}}                  │ X │ . │ average damage - damage / battles

│ {{v.c_tdb}}                │ X │ . │ dynamic color for this macro

│ {{v.tdv}}                  │ X │ . │ average damage efficiency - damage / (battles * maxHP)

│ {{v.c_tdv}}                │ X │ . │ dynamic color for this macro

│ {{v.tfb}}                  │ X │ . │ average frags per battle

│ {{v.c_tfb}}                │ X │ . │ dynamic color for this macro

│ {{v.tsb}}                  │ X │ . │ average number of spotted enemies per battle

│ {{v.c_tsb}}                │ X │ . │ dynamic color for this macro

│ {{v.wn8expd}}              │ X │ . │ WN8 expected tank damage

│ {{v.wn8effd}}              │ X │ . │ WN8 effective tank damage (avgdmg / expected_dmg)

│ {{v.c_wn8effd}}            │ X │ . │ dynamic color for this macro

│ {{v.marksOnGun}}           │ X │ . │ marks on gun

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

│ {{v.c_damageRating}}       │ X │ . │ dynamic color for this macro

│ {{v.teff}}, {{v.e}}        │ . │ . │ player's per-vehicle efficiency: http://www.koreanrandom.com/forum/topic/1643-

│ {{v.c_e}}                  │ . │ . │ dynamic color for this macro

│ {{v.equipment1}}           │ . │ . │ small icon of equipment in 1st slot

│ {{v.equipment2}}           │ . │ . │ small icon of equipment in 2nd slot

│ {{v.equipment3}}           │ . │ . │ small icon of equipment in 3rd slot

│ {{v.consumable1}}          │ . │ . │ small icon of consumable in 1st slot

│ {{v.consumable2}}          │ . │ . │ small icon of consumable in 2nd slot

│ {{v.consumable3}}          │ . │ . │ small icon of consumable in 3rd slot

│ {{v.xpForTop}}             │ . │ . │ XP points required for top tank

│ {{v.xpForExpert}}          │ . │ . │ XP points required for expert tank

│ {{v.shootRange}}           │ . │ . │ actual shoot range

│ {{v.viewRange}}            │ . │ . │ actual view range

│ {{v.dpm}}                  │ . │ . │ actual damage per minute

│ {{v.gunAvgDamage}}         │ . │ . │ average damage for current gun AP/CR/HE

│ {{v.gunAvgHit}}            │ . │ . │ average penetration for current gun AP/CR/HE

│ {{v.gunDispersion}}        │ . │ . │ base dispersion at 100 m for current gun

│ {{v.gunAimingTime}}        │ . │ . │ base aiming time for current gun

│ {{l10n:ID}}                │ . │ . │ localizated text, see en.xc for id

└────────────────────────────┴───┴───┴─────────────────────────────────

Просто сказка, спасибо, все работает!!!

Share this post


Link to post

Short link
Share on other sites

@Hawk1983x

Спасибо, конечно, искал подобное, и по первой же ссылке в гугле нашел эту тему с решением. Но вот это:

"valign": "left"

явно бред какой-то. 

Edited by Urbylco

Share this post


Link to post

Short link
Share on other sites

явно бред какой-то.

ну да согласен=)

монитор в портретном режиме :-)

 

шутка, конечно

Edited by seriych

Share this post


Link to post

Short link
Share on other sites
А количество боев можно вывести так же как проценты?

напр:

 { "x": 128, "y": 55, "align": "center", "format": "<font color='{{v.c_battles}}'>{{v.battles}}</font>", "shadow": {  } },

 

{{v.battles}}              │ X │ . │ total battles count for current vehicle
{{v.kb}}                   │ X │ . │ number of kilo-battles for current vehicle │
{{v.hb}}                   │ X │ . │ number of hecto-battles for current vehicle (hecto = 100)
Edited by Hawk1983x

Share this post


Link to post

Short link
Share on other sites

Читая тему подчеркнул для себя как убрать процент побед и уровень боев. Подскажите пожалуйста координаты для того чтобы знак классности отображался на краю справа. Там где сейчас находиться процент побед на изображении у ТС.

Share this post


Link to post

Short link
Share on other sites

знак классности:

 { "x": -1.3, "y": 10, "format": "<img src='img://gui/maps/icons/library/proficiency/class_icons_{{v.mastery}}.png' width='23' height='23'>" }, 

процент побед:

{ "x": 20, "y": 12,  "format": "<font  color='{{v.c_winrate}}'>{{v.winrate%.2d~%}}</font>", "shadow": {} }, 

уровни боев:

 { "x": 54, "y": -2,  "align": "center",  "format": "<font  color='#777777'>{{v.battletiermin}}</font>..<font  color='#D9A300'>{{v.battletiermax}}</font>", "shadow": {} }, 

Все это вставляешь в extraFields в carousel.хс

Синтаксис extraFields :

// Set of formats for left panel

          // Набор форматов для левой панели

          // example:

          // "format": [

          //   // simple format (just a text)

          //   "{{nick}}",

          //   "<img src='xvm://res/img/panel-bg-l-{{alive|dead}}.png' width='318' height='28'>",

          //   // extended format

          //   { "x": 20, "y": 10, "border": 1, "borderColor": "0xFFFFFF", "format": "{{nick}}" },

          //   { "x": 200, "src": "xvm://res/contour/{{vehiclename}}.png" }

          // ]

          //

          // types of formats available for extended format:

          //   - MovieClip (for loading image)

          //   - TextField (for writing text and creating rectangles)

          // if "src" field is present, MovieClip format will be used

          // if "src" field is absent, TextField format will be used

          //

          // fields available for extended format:

          //   "src" - resource path ("xvm://res/contour/{{vehiclename}}.png")

          //   "format" - text format (macros allowed)

          //

          // fields available for both MovieClip and TextField formats:

          //   "x" - x position (macros allowed)

          //   "y" - y position (macros allowed)

          //   "w" - width (macros allowed)

          //   "h" - height (macros allowed)

          //   "alpha" - transparency in percents (0..100) (macros allowed)

          //   "rotation" - rotation in degrees (0..360) (macros allowed)

          //   "align" - horizontal alignment ("left", "center", "right")

          //      for left panel default value is "left"

          //      for right panel default value is "right"

          //

          // fields available for TextField format only:

          //   "valign" - vertical alignment ("top", "center", "bottom")

          //      default value is "top"

          //   "borderColor" - if set, draw border with specified color (macros allowed)

          //   "bgColor" - if set, draw background with specified color (macros allowed)

          //   "antiAliasType" - anti aliasing mode ("advanced" or "normal")

          //   "shadow": {

          //     "distance" (in pixels)

          //     "angle"    (0.0 .. 360.0)

          //     "color"    "0xXXXXXX"

          //     "alpha"    (0.0 .. 1.0)

          //     "blur"     (0.0 .. 255.0)

          //     "strength" (0.0 .. 255.0)

          //    }

          //

          // * all fields are optional

          //

макросы для карусели танков:

Macros available in hangar

Legend:

  TC - tank carousel

  SQ - squad window

  'X' - available

  ' ' - not available (can return wrong value - '', 'NaN', 'undefined', ...)

  '.' - TODO

  '-' - Obsoleted (will be replaced with other macro)

┌────────────────────────────┬───┬───┬─────────────────────────────────

│ macro                      │ TC│ SQ│ Description

├────────────────────────────┼───┼───┼─────────────────────────────────

│ {{v.vehId}}                │ X │ . │ vehicle id

│ {{v.battles}}              │ X │ . │ total battles count for current vehicle

│ {{v.c_battles}}            │ X │ . │ color for battles count

│ {{v.kb}}                   │ X │ . │ number of kilo-battles for current vehicle

│ {{v.hb}}                   │ X │ . │ number of hecto-battles for current vehicle (hecto = 100)

│ {{v.wins}}                 │ X │ . │ total wins count for current vehicle

│ {{v.mastery}}              │ X │ . │ mastery sign for current vehicle

│ {{v.xp}}                   │ X │ . │ average XP gained on current vehicle

│ {{v.fullname}}             │ X │ . │ localized full vehicle name

│ {{v.name}}                 │ X │ . │ localized compact vehicle name

│ {{v.sysname}}              │ X │ . │ vehicle system name (usa-M24_Chaffee)

│ {{v.shortname}}            │ X │ . │ localized short vehicle name

│ {{v.type}}                 │ X │ . │ vehicle type (text substitution from config)

│ {{v.c_type}}               │ X │ . │ color for vehicle type

│ {{v.level}}                │ X │ . │ vehicle level (Arabic numerals)

│ {{v.rlevel}}               │ X │ . │ vehicle level (Roman numerals)

│ {{v.battletiermin}}        │ X │ . │ minimal vehicle battle tier

│ {{v.battletiermax}}        │ X │ . │ maximal vehicle battle tier

│ {{v.nation}}               │ X │ . │ vehicle nation

│ {{v.premium}}              │ X │ . │ 'premium' for premium, empty for normal vehicle

│ {{v.elite}}                │ X │ . │ 'elite' for elite, empty for normal vehicle

│ {{v.maxHP}}                │ X │ . │ maximum vehicle health points

│ {{v.winrate}}              │ X │ . │ vehicle win rate (percent of wins on this vehicle)

│ {{v.hitsRatio}}            │ X │ . │ percent of hits

│ {{v.c_winrate}}            │ X │ . │ color for win rate

│ {{v.tdb}}                  │ X │ . │ average damage - damage / battles

│ {{v.c_tdb}}                │ X │ . │ dynamic color for this macro

│ {{v.tdv}}                  │ X │ . │ average damage efficiency - damage / (battles * maxHP)

│ {{v.c_tdv}}                │ X │ . │ dynamic color for this macro

│ {{v.tfb}}                  │ X │ . │ average frags per battle

│ {{v.c_tfb}}                │ X │ . │ dynamic color for this macro

│ {{v.tsb}}                  │ X │ . │ average number of spotted enemies per battle

│ {{v.c_tsb}}                │ X │ . │ dynamic color for this macro

│ {{v.wn8expd}}              │ X │ . │ WN8 expected tank damage

│ {{v.wn8effd}}              │ X │ . │ WN8 effective tank damage (avgdmg / expected_dmg)

│ {{v.c_wn8effd}}            │ X │ . │ dynamic color for this macro

│ {{v.marksOnGun}}           │ X │ . │ marks on gun

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

│ {{v.c_damageRating}}       │ X │ . │ dynamic color for this macro

│ {{v.teff}}, {{v.e}}        │ . │ . │ player's per-vehicle efficiency: http://www.koreanrandom.com/forum/topic/1643-

│ {{v.c_e}}                  │ . │ . │ dynamic color for this macro

│ {{v.equipment1}}           │ . │ . │ small icon of equipment in 1st slot

│ {{v.equipment2}}           │ . │ . │ small icon of equipment in 2nd slot

│ {{v.equipment3}}           │ . │ . │ small icon of equipment in 3rd slot

│ {{v.consumable1}}          │ . │ . │ small icon of consumable in 1st slot

│ {{v.consumable2}}          │ . │ . │ small icon of consumable in 2nd slot

│ {{v.consumable3}}          │ . │ . │ small icon of consumable in 3rd slot

│ {{v.xpForTop}}             │ . │ . │ XP points required for top tank

│ {{v.xpForExpert}}          │ . │ . │ XP points required for expert tank

│ {{v.shootRange}}           │ . │ . │ actual shoot range

│ {{v.viewRange}}            │ . │ . │ actual view range

│ {{v.dpm}}                  │ . │ . │ actual damage per minute

│ {{v.gunAvgDamage}}         │ . │ . │ average damage for current gun AP/CR/HE

│ {{v.gunAvgHit}}            │ . │ . │ average penetration for current gun AP/CR/HE

│ {{v.gunDispersion}}        │ . │ . │ base dispersion at 100 m for current gun

│ {{v.gunAimingTime}}        │ . │ . │ base aiming time for current gun

│ {{l10n:ID}}                │ . │ . │ localizated text, see en.xc for id

└────────────────────────────┴───┴───┴─────────────────────────────────

пожалуйста, подскажите как его выключить(( или лучше подскажите путь к файлу

я удалила файл карусель и удалилось все, все нормально

Share this post


Link to post

Short link
Share on other sites

 

 

я удалила файл карусель и удалилось все, все нормально

не стоит так делать для выключения достаточно в carousel.хс

"enabled": false, 

Share this post


Link to post

Short link
Share on other sites
Все это вставляешь в extraFields в carousel.хс

вставил чёт не пашет...тоже хочу эту фишку

 

ВСЁ НЕ НУЖНО ПОЛУЧИЛОСЬ

Edited by Prosubaru

Share this post


Link to post

Short link
Share on other sites

 

не стоит так делать для выключения достаточно в carousel.хс

"enabled": false, 

ну если будет что-то не так переустановлю моды. Спасибо большое. Можно еще вопрос один, я хотела отредактировать фаил iamspotted (меня засветили), но что-то не работает(( моды от протанки . Подскажите , что в этом файле не так. Спасибо заранее, вы очень умен! 

пс. по поводу карусели и правда)) пропали % на танках в достижениях, сейчас скопирую фаил из 0.9.2))

iamspotted.xml

Edited by Вера 27

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...