Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Normal carousel cells settings
- * Настройки ячеек карусели обычного размера
- */
- {
- "def": {
- "textFieldShadow": { "enabled": true, "color": "0x000000", "alpha": 80, "blur": 2, "strength": 2, "distance": 0, "angle": 0 }
- },
- "normal": {
- "width": 135, // Default 160. This is 84% scale.
- "height": 84, // Default 100. This is 84% scale.
- "gap": 1, // Spacing between carousel cells.
- "fields": {
- "tankName": { "enabled": false, "dx": 0, "dy": 0, "alpha": 100, "scale": 1 },
- "tankType": { "enabled": true, "dx": 1, "dy": 1, "alpha": 100, "scale": 1 },
- "level": { "enabled": true, "dx": 1, "dy": 1, "alpha": 100, "scale": 1 },
- "xp": { "enabled": true, "dx": 7, "dy": 1, "alpha": 100, "scale": 1 }, // Double XP icon
- "flag": { "enabled": true, "dx": 0, "dy": 0, "alpha": 100, "scale": 0.84 }, // Background flag
- "tankIcon": { "enabled": true, "dx": 0, "dy": 0, "alpha": 100, "scale": 0.84 }, // Background tank
- "info": { "enabled": true, "dx": -15, "dy": 0, "alpha": 70, "scale": 0.84 }, // Info text (Crew incomplete, Repairs required, Rental period ended)
- "infoBuy": { "enabled": true, "dx": -15, "dy": 0, "alpha": 100, "scale": 0.84 }, // Info text for "Buy vehicle" and "Buy slot" slots.
- "rentInfo": { "enabled": true, "dx": -25, "dy": -38, "alpha": 70, "scale": 0.84 }, // Time for rental
- "clanLock": { "enabled": true, "dx": 0, "dy": -2, "alpha": 70 },
- "price": { "enabled": true, "dx": 0, "dy": 0, "alpha": 100 },
- "actionPrice": { "enabled": true, "dx": 0, "dy": 0, "alpha": 100 },
- "favorite": { "enabled": true, "dx": 0, "dy": 0, "alpha": 100 }, // Favorite (primary) vehicle mark
- "stats": { "enabled": false, "dx": 0, "dy": 0, "alpha": 100 } // Stats field that appears on the mouse hover
- },
- "extraFields": [
- // Bottom bar ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
- { "x": 1, "y": 57, "h": 27, "w": "133", "bgColor": "{{v.selected?0x000000|0x000000}}", "alpha": "{{v.selected?75|0}}" },
- // Alternative 1: Different bar for each tank class; set one line/color per class and toggle using alpha macro
- // { "x": 1, "y": 57, "h": 27, "w": "133", "bgColor": "0x420000", "alpha": "{{v.type=SPG?{{v.selected?75|0}}|0}}" },
- // { "x": 1, "y": 57, "h": 27, "w": "133", "bgColor": "0x000242", "alpha": "{{v.type=TD?{{v.selected?75|0}}|0}}" },
- // Alternative 2: Nestle all within bgColor macro
- // { "x": 1, "y": 57, "h": 27, "w": "133", "bgColor": "{{v.type=TD?0x000242|{{v.type=SPG?0x420000|0x000000}}}}", "alpha": "{{v.selected?75|0}}" },
- // Mastery level
- { "x": 0, "y": 11, "format": "<img src='img://gui/maps/icons/library/proficiency/class_icons_{{v.mastery}}.png' width='23' height='23'>" },
- // FIRST ROW ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
- // MOE - img dimensions 128 x 34 = 3.76:1 - path:res_mods\mods\shared_resources\xvm\res\icons\carousel
- { "x": 2, "y": 59, "format": "<img src='xvm://res/icons/carousel/marks_on_guns/{{v.nation}}/{{v.marksOnGun}}.png' width='30' height='8'>"},
- // MOE % (displayed only when vehicle selected)
- { "x": 73, "y": 56, "format": "<font size='11' face='$TitleFont' color='{{v.c_damageRating}}'>{{v.damageRating%-3.1f~%}}</font>",
- "shadow": ${ "def.textFieldShadow" }, "alpha": "{{v.selected?{{v.battles?100|0}}|0}}" },
- // DPG
- { "x": 135, "y": 56, "align": "right", "format": "<font size='11' face='$TitleFont' color='#FFFFFF'>{{v.tdb%-4d}}</font>",
- "shadow": ${ "def.textFieldShadow" } },
- // SECOND ROW ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
- // Tank name
- { "x": 2, "y": 68, "format": "<font face='$TitleFont' color='{{v.premium?#DB834C|#ffffff}}' size='11'>{{v.name}}</font>",
- "shadow": {"blur":5, "color": "{{v.premium?0x581300|0x003864}}", "strength": "{{v.premium?3|2}}"} },
- // No of Battles (displayed only when vehicle selected)
- { "x": 73, "y": 68, "format": "<font size='11' face='$TitleFont' color='#FFFFFF'>{{v.battles}}</font>",
- "shadow": ${ "def.textFieldShadow" }, "alpha": "{{v.selected?{{v.battles?100|0}}|0}}" },
- // Vehicle WR
- { "x": 135, "y": 68, "align": "right", "format": "<font size='11' face='$TitleFont' color='{{v.c_winrate}}'>{{v.winrate%-3.1f~%}}</font>",
- "shadow": ${ "def.textFieldShadow" } },
- // Cell border highlight on select - top bottom left right - size = 135x84 incl original black border
- { "x": 1, "y": 1, "h": 1, "w": "135", "bgColor": "0xDB774C", "alpha": "{{v.selected?100|0}}", "layer": "top" }, // top
- { "x": 1, "y": 84, "h": 1, "w": "135", "bgColor": "0xDB774C", "alpha": "{{v.selected?100|0}}", "layer": "top" }, // bottom
- { "x": 1, "y": 1, "h": 83, "w": "1", "bgColor": "0xDB774C", "alpha": "{{v.selected?100|0}}", "layer": "top" }, // left
- { "x": 135, "y": 1, "h": 83, "w": "1", "bgColor": "0xDB774C", "alpha": "{{v.selected?100|0}}", "layer": "top" }, // right
- // { "x": 1, "y": 1, "h": 83, "w": "1",
- // "bgColor": "{{v.selected?0xDB774C|{{v.type=LT?0x00EE00|{{v.type=MT?0x00B4FF|{{v.type=HT?0xFE0E00|{{v.type=TD?0xAE42F3|0xFF00FF}}}}}}}}}}",
- // "alpha": "{{v.selected?100|100}}", "layer": "top" }, // left, color coded classes
- {}
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement