Aslain Posted April 13, 2015 Share Posted April 13, 2015 (edited) { // Parameters of the Players Panels ("ears"). "def": { "c1": "0x13C313", "c2": "0xFF0F0F" }, "playersPanel": { "alpha": 60, "clanIcon": { "alpha": 90, "h": 24, "show": true, "w": 24, "x": 82, "xr": 105, "y": 0, "yr": 0 }, "iconAlpha": 100, "large": { "nickFormatLeft": "<font color='{{c:wn8}}' alpha='{{alive?#FF|#80}}'>{{name%.16s~..}} <font face='Consolas'><font size='10'>{{clan}}</font></font></font>", "nickFormatRight": "<font color='{{c:wn8}}' alpha='{{alive?#FF|#80}}'><font face='Consolas'><font size='10'>{{clan}}</font></font> {{name%.16s~..}}</font>", "vehicleFormatLeft": "<font face='Consolas' size='12'><font color='{{c:avglvl|#666666}}'>{{avglvl%d|-}}</font> <font color='{{c:kb|#666666}}'>{{kb%2d~k|--k}}</font> <font color='{{c:wn8|#666666}}' alpha='{{alive?#FF|#80}}'>{{wn8%4d|----}}</font> <font color='{{c:winrate|#666666}}' alpha='{{alive?#FF|#80}}'>{{winrate%2d~%|--%}}</font> <font color='{{c:t-battles|#666666}}' alpha='{{alive?#FF|#80}}'>{{t-battles%4d|----}}</font> <font color='{{c:t-winrate|#666666}}'>{{t-winrate%2d~%|--%}}</font> <font color='{{c:tdv|#666666}}' alpha='{{alive?#FF|#80}}'>{{tdv%0.1f|---}}</font></font>", "vehicleFormatRight": "<font face='Consolas' size='12'><font color='{{c:avglvl|#666666}}' alpha='{{alive?#FF|#80}}'>{{avglvl%d|-}}</font> <font color='{{c:kb|#666666}}' alpha='{{alive?#FF|#80}}'>{{kb%2d~k|--k}}</font> <font color='{{c:wn8|#666666}}' alpha='{{alive?#FF|#80}}'>{{wn8%4d|----}}</font> <font color='{{c:winrate|#666666}}' alpha='{{alive?#FF|#80}}'>{{winrate%2d~%|--%}}</font> <font color='{{c:t-battles|#666666}}' alpha='{{alive?#FF|#80}}'>{{t-battles%4d|----}}</font> <font color='{{c:t-winrate|#666666}}' alpha='{{alive?#FF|#80}}'>{{t-winrate%2d~%|--%}}</font> <font color='{{c:tdv|#666666}}' alpha='{{alive?#FF|#80}}'>{{tdv%0.1f|---}}</font></font>", "extraFieldsRight": [ { "x": 0, "y": 4, "align": "center", "valign": "top", "bindToIcon": "true", "format": "{{spotted}} ", "alpha": "{{alive?100|0}}", "shadow": {} }, {} ], "width": 80 }, "medium": { "formatLeft": " <font color='{{c:wn8}}' alpha='{{alive?#FF|#80}}'>{{name%.9s~..}}</font> <font color='{{c:wn8}}' alpha='{{alive?#FF|#80}}'>{{clan}}</font>", "formatRight": "<font color='{{c:wn8}}' alpha='{{alive?#FF|#80}}'>{{clan}}</font> <font color='{{c:wn8}}'alpha='{{alive?#F0|#80}}'>{{name%.9s~..}}</font> ", "extraFieldsLeft": [ { "x": -208, "y": 6, "align": "center", "bindToIcon": "false", "valign": "top", "src": "xvm://res/icons/lang/{{region|EU}}/{{language|empty}}.png", "alpha": "{{alive?100|30}}", "shadow": {} }, { "x": 0, "y": 22, "valign": "center", "h": 3, "w": "108", "bgColor": 0, "alpha": "{{alive?35|0}}" }, { "x": 0, "y": 22, "valign": "center", "h": 3, "w": "{{hp-ratio:108}}", "bgColor": "{{c:wn8|#FFFFFF}}", "alpha": "{{alive?75|0}}" }, {} ], "extraFieldsRight": [ { "x": -215, "y": 6, "align": "center", "bindToIcon": "false", "valign": "top", "src": "xvm://res/icons/lang/{{region|EU}}/{{language|empty}}.png", "alpha": "{{alive?100|30}}", "shadow": {} }, { "x": 0, "y": 22, "valign": "center", "h": 3, "w": "108", "bgColor": 0, "alpha": "{{alive?35|0}}" }, { "x": 0, "y": 22, "valign": "center", "h": 3, "w": "{{hp-ratio:108}}", "bgColor": "{{c:wn8|#FFFFFF}}", "alpha": "{{alive?75|0}}" }, { "x": 0, "y": 4, "align": "center", "valign": "top", "bindToIcon": "true", "format": "{{spotted}} ", "alpha": "{{alive?100|0}}", "shadow": {} }, {} ], "width": 56 }, "medium2": { "formatLeft": "<font color='{{c:wn8}}' alpha='{{alive?#FF|#80}}'>{{vehicle}}</font>", "formatRight": "<font color='{{c:wn8}}' alpha='{{alive?#FF|#80}}'>{{vehicle}}</font>", "extraFieldsRight": [ { "x": 0, "y": 4, "align": "center", "valign": "top", "bindToIcon": "true", "format": "{{spotted}} ", "alpha": "{{alive?100|0}}", "shadow": {} }, {} ], "width": 65 }, "short": { "enabled": true, "width": 0, "fragsFormatLeft": "{{frags}}", "fragsFormatRight": "{{frags}}", "extraFieldsLeft": [], "extraFieldsRight": [ { "x": 0, "y": 4, "align": "center", "valign": "top", "bindToIcon": "true", "format": "{{spotted}} ", "alpha": "{{alive?100|0}}", "shadow": {} }, {} ] }, "none": { "enabled": true, "layout": "vertical", "extraFields": { "leftPanel": { "x": 0, "y": 65, "width": 350, "height": 25, "formats": [] }, "rightPanel": { "x": 0, "y": 65, "width": 350, "height": 25, "formats": [] } } }, "removePanelsModeSwitcher": false, "removeSelectedBackground": false, "removeSquadIcon": false, "startMode": "large", "altMode": null } } Above is my playerspanel.xc with flags and hp bars, the problem is why flags sometimes fit perfectly, but on another battle they are overlapping right side player name Battle no.1 (all is OK): Battle no.2 (NOT OK): Why is this happens? Edited April 13, 2015 by Aslain @ Quote Link to comment Short link Share on other sites More sharing options...
sirmax Posted April 13, 2015 Share Posted April 13, 2015 I have no problems with this settings: "nickFormatLeft": " {{name%.20s~..}}<font alpha='#A0'>{{clan}}</font>","nickFormatRight": "{{name%.20s~..}}<font alpha='#A0'>{{clan}}</font> ", Also you can move {{language}} macro from extra field to the "format" section. @ Quote Link to comment Short link Share on other sites More sharing options...
Aslain Posted April 13, 2015 Author Share Posted April 13, 2015 (edited) Have you tried to use my code? Before, I tried something like this: "formatLeft": "<img src='xvm://res/icons/lang/{{region|CT}}/{{language|empty}}.png' width='16' height='13'> <font color='{{c:wn8}}' alpha='{{alive?#FF|#80}}'>{{name%.9s~..}}</font> <font color='{{c:wn8}}' alpha='{{alive?#FF|#80}}'>{{clan}}</font>", But the flag is a bit too close to the top on line, check both sides: "medium": { "formatLeft": "<img src='xvm://res/icons/lang/{{region|CT}}/{{language|empty}}.png' width='16' height='13'> <font color='{{c:wn8}}' alpha='{{alive?#FF|#80}}'>{{name%.9s~..}}</font> <font color='{{c:wn8}}' alpha='{{alive?#FF|#80}}'>{{clan}}</font>", "formatRight": "<font color='{{c:wn8}}' alpha='{{alive?#FF|#80}}'>{{clan}}</font> <font color='{{c:wn8}}'alpha='{{alive?#F0|#80}}'>{{name%.9s~..}}</font> <img src='xvm://res/icons/lang/{{region|CT}}/{{language|empty}}.png' width='16' height='13'>", "extraFieldsLeft": [// { "x": -208, "y": 6, "align": "center", "bindToIcon": "false", "valign": "top", "src": "xvm://res/icons/lang/{{region|EU}}/{{language|empty}}.png", "alpha": "{{alive?100|30}}", "shadow": {} }, { "x": 0, "y": 22, "valign": "center", "h": 3, "w": "108", "bgColor": 0, "alpha": "{{alive?35|0}}" }, { "x": 0, "y": 22, "valign": "center", "h": 3, "w": "{{hp-ratio:108}}", "bgColor": "{{c:wn8|#FFFFFF}}", "alpha": "{{alive?75|0}}" }, {} ], "extraFieldsRight": [ // { "x": -208, "y": 6, "align": "center", "bindToIcon": "false", "valign": "top", "src": "xvm://res/icons/lang/{{region|EU}}/{{language|empty}}.png", "alpha": "{{alive?100|30}}", "shadow": {} }, { "x": 0, "y": 22, "valign": "center", "h": 3, "w": "108", "bgColor": 0, "alpha": "{{alive?35|0}}" }, { "x": 0, "y": 22, "valign": "center", "h": 3, "w": "{{hp-ratio:108}}", "bgColor": "{{c:wn8|#FFFFFF}}", "alpha": "{{alive?75|0}}" }, { "x": 0, "y": 4, "align": "center", "valign": "top", "bindToIcon": "true", "format": "{{spotted}} ", "alpha": "{{alive?100|0}}", "shadow": {} }, {} ], "width": 56 }, Also how to make the flag in format field to dissapear after players death? I tried to add alpha='{{alive?#FF|#80}}' to <img> but it doesn't change anything. Solved with this: "medium": { "formatLeft": " <font color='{{c:wn8}}' alpha='{{alive?#FF|#80}}'>{{nick%.13s~..}}</font>", "formatRight": "<font color='{{c:wn8}}' alpha='{{alive?#FF|#80}}'>{{nick%.13s~..}}</font> ", "extraFieldsLeft": [ { "x": 10, "y": 6, "align": "center", "valign": "top", "src": "xvm://res/icons/lang/{{region|EU}}/{{language|empty}}.png", "alpha": "{{alive?100|30}}", "shadow": {} }, { "x": 0, "y": 22, "valign": "center", "h": 3, "w": "105", "bgColor": 0, "alpha": "{{alive?35|0}}" }, { "x": 0, "y": 22, "valign": "center", "h": 3, "w": "{{hp-ratio:105}}", "bgColor": "{{c:wn8|#FFFFFF}}", "alpha": "{{alive?75|0}}" }, {} ], Thanks for a tip Soulza Edited April 13, 2015 by Aslain @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
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.