Advertisement
Guest User

carouselNormal.xc

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