Advertisement
Guest User

carouselNormal.xc

a guest
Mar 27th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.14 KB | None | 0 0
  1. /**
  2. * Normal carousel cells settings
  3. * Настройки ячеек карусели обычного размера
  4. */
  5. {
  6. "def": {
  7. "textFieldShadow": { "enabled": true, "color": "0x000000", "alpha": 80, "blur": 2, "strength": 2, "distance": 0, "angle": 0 },
  8. "classColor": "{{v.type=LT?0x00EE00|{{v.type=MT?0x00B4FF|{{v.type=HT?0xFE0E00|{{v.type=TD?0x9000FF|0x00EE00}}}}}}}}"
  9. },
  10. "normal": {
  11. "width": 135, // Default 160. This is 84% scale.
  12. "height": 84, // Default 100. This is 84% scale.
  13. "gap": 1, // Spacing between carousel cells.
  14.  
  15. "fields": {
  16. "tankName": { "enabled": false, "dx": 0, "dy": 0, "alpha": 100, "scale": 1 },
  17. "tankType": { "enabled": true, "dx": 1, "dy": 1, "alpha": 100, "scale": 1 },
  18. "level": { "enabled": true, "dx": 1, "dy": 1, "alpha": 100, "scale": 1 },
  19. "xp": { "enabled": true, "dx": 7, "dy": 1, "alpha": 100, "scale": 1 }, // Double XP icon
  20. "flag": { "enabled": true, "dx": 0, "dy": 0, "alpha": 100, "scale": 0.84 }, // Background flag
  21. "tankIcon": { "enabled": true, "dx": 0, "dy": 0, "alpha": 100, "scale": 0.84 }, // Background tank
  22. "info": { "enabled": true, "dx": -15, "dy": 0, "alpha": 70, "scale": 0.84 }, // Info text (Crew incomplete, Repairs required, Rental period ended)
  23. "infoBuy": { "enabled": true, "dx": -15, "dy": 0, "alpha": 100, "scale": 0.84 }, // Info text for "Buy vehicle" and "Buy slot" slots.
  24. "rentInfo": { "enabled": true, "dx": -25, "dy": -38, "alpha": 70, "scale": 0.84 }, // Time for rental
  25. "clanLock": { "enabled": true, "dx": 0, "dy": -2, "alpha": 70 },
  26. "price": { "enabled": true, "dx": 0, "dy": 0, "alpha": 100 },
  27. "actionPrice": { "enabled": true, "dx": 0, "dy": 0, "alpha": 100 },
  28. "favorite": { "enabled": true, "dx": 0, "dy": 0, "alpha": 100 }, // Favorite (primary) vehicle mark
  29. "stats": { "enabled": false, "dx": 0, "dy": 0, "alpha": 100 } // Stats field that appears on the mouse hover
  30. },
  31.  
  32. "extraFields": [
  33. // Background - behind tank, size = 135x84 - http://i.imgur.com/sH1vY5e.jpg
  34. // { "x": 1, "y": 1, "h": 84, "w": "135", "bgColor": ${"def.classColor"}, "alpha": "{{v.selected?15|0}}", "layer": "bottom" },
  35. // Bottom bar ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
  36. { "x": 1, "y": 57, "h": 27, "w": "133", "bgColor": ${"def.classColor"}, "alpha": "{{v.selected?0|15}}", "layer": "bottom" },
  37. { "x": 1, "y": 57, "h": 27, "w": "133", "bgColor": "0x000000", "alpha": "{{v.selected?75|0}}" },
  38. // Mastery level
  39. { "x": 0, "y": 11, "format": "<img src='img://gui/maps/icons/library/proficiency/class_icons_{{v.mastery}}.png' width='23' height='23'>" },
  40. // FIRST ROW ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
  41. // MOE - img dimensions 128 x 34 = 3.76:1 - path:res_mods\mods\shared_resources\xvm\res\icons\carousel
  42. { "x": 2, "y": 59, "format": "<img src='xvm://res/icons/carousel/marks_on_guns/{{v.nation}}/{{v.marksOnGun}}.png' width='30' height='8'>"},
  43. // MOE % (displayed only when vehicle selected)
  44. { "x": 73, "y": 56, "format": "<font size='11' face='$TitleFont' color='{{v.c_damageRating}}'>{{v.damageRating%-3.1f~%}}</font>",
  45. "shadow": ${ "def.textFieldShadow" }, "alpha": "{{v.selected?{{v.battles?100|0}}|0}}" },
  46. // DPG
  47. { "x": 135, "y": 56, "align": "right", "format": "<font size='11' face='$TitleFont' color='#FFFFFF'>{{v.tdb%-4d}}</font>",
  48. "shadow": ${ "def.textFieldShadow" } },
  49. // SECOND ROW ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
  50. // Tank name
  51. { "x": 2, "y": 68, "format": "<font face='$TitleFont' color='{{v.premium?#DB834C|#FFFFFF}}' size='11'>{{v.name}}</font>",
  52. "shadow": {"blur":5, "color": "{{v.premium?0x581300|0x003864}}", "strength": "{{v.premium?3|2}}"} },
  53. // No of Battles (displayed only when vehicle selected)
  54. { "x": 73, "y": 68, "format": "<font size='11' face='$TitleFont' color='#FFFFFF'>{{v.battles}}</font>",
  55. "shadow": ${ "def.textFieldShadow" }, "alpha": "{{v.selected?{{v.battles?100|0}}|0}}" },
  56. // Vehicle WR
  57. { "x": 135, "y": 68, "align": "right", "format": "<font size='11' face='$TitleFont' color='{{v.c_winrate}}'>{{v.winrate%-3.1f~%}}</font>",
  58. "shadow": ${ "def.textFieldShadow" } },
  59. // Cell border highlight on select - top bottom left right - size = 135x84 incl original black border
  60. { "x": 1, "y": 1, "h": 1, "w": "135", "bgColor": "0xDB774C", "alpha": "{{v.selected?100|0}}", "layer": "top" }, // top
  61. { "x": 1, "y": 84, "h": 1, "w": "135", "bgColor": "0xDB774C", "alpha": "{{v.selected?100|0}}", "layer": "top" }, // bottom
  62. { "x": 1, "y": 1, "h": 83, "w": "1", "bgColor": "0xDB774C", "alpha": "{{v.selected?100|0}}", "layer": "top" }, // left
  63. { "x": 135, "y": 1, "h": 83, "w": "1", "bgColor": "0xDB774C", "alpha": "{{v.selected?100|0}}", "layer": "top" }, // right
  64. {}
  65. ]
  66. }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement