user21 0 Posted March 7, 2015 I am having trouble to set up squad icons on medium panels here is the code "formatRight": "<font alpha='#A0'>{{clan}}</font> <font color='{{c:wn8}}' alpha='{{alive?#FF|#80}}'>{{name%.12s~..}}</font><img src='xvm://res/icons/squad/{{squad-num}}.png' width='30' height='24'>", And it mess up everything like in the picture What should i do? Thanks in advance Quote Share this post Link to post Short link Share on other sites
jem1510 107 #256891 Posted March 7, 2015 can best be done through an extra field? { "x": -8, "w": 30, "bindToIcon": true, "src": "xvm://res/icons/squad/{{squad}}{{squad-num}}.png", "alpha": "{{alive?100|30}}" }, // for left panel { "x": -8, "w": 30, "bindToIcon": true, "src": "xvm://res/icons/squad/{{squad-num}}.png", "alpha": "{{alive?100|30}}" }, // for right panel Quote Share this post Link to post Short link Share on other sites
user21 0 #256897 Posted March 7, 2015 hello and thanks for answer, I know for that one, done with spotted icon But i am trying to make it look like large panel where at the end (at right panel) it has separate place for squad icons Quote Share this post Link to post Short link Share on other sites
jem1510 107 #257051 Posted March 8, 2015 (edited) that was exactly, to do so only: "formatLeft": "<tab><font color='{{c:xwn8}}' alpha='{{alive?#FF|#80}}'>{{name%.12s~..}}</font> <font alpha='#A0'>{{clan}}</font>", "formatRight": "<font alpha='#A0'>{{clan}}</font> <font color='{{c:xwn8}}' alpha='{{alive?#FF|#80}}'>{{name%.12s~..}}</font><tab>", "extraFieldsLeft": [ { "x": 0, "w": 30, "src": "xvm://res/icons/squad/{{squad}}{{squad-num}}.png" } ], "extraFieldsRight": [ { "x": 0, "w": 30, "src": "xvm://res/icons/squad/{{squad-num}}.png" } ] Edited March 8, 2015 by jem1510 Quote Share this post Link to post Short link Share on other sites
user21 0 #257055 Posted March 8, 2015 (edited) Hello and thanks again for your answer and your time. I have done like you said here is my code "medium": { "enabled": true, "width": 46, "formatLeft": "<tab><font color='{{c:wn8}}' alpha='{{alive?#FF|#80}}'>{{name%.12s~..}}</font> <font alpha='#A0'>{{clan}}</font>", //{{name%-16.16s}} "formatRight": "<font alpha='#A0'>{{clan}}</font> <font color='{{c:wn8}}' alpha='{{alive?#FF|#80}}'>{{name%.12s~..}}</font><tab>", "fragsFormatLeft": "{{frags}}", "fragsFormatRight": "{{frags}}", "extraFieldsLeft": [ { "x": 0, "w": 30, "src": "xvm://res/icons/squad/{{squad}}{{squad-num}}.png", "alpha": "{{alive?100|30}}" } ], "extraFieldsRight": [ { "x": 0, "w": 30, "src": "xvm://res/icons/squad/{{squad-num}}.png", "alpha": "{{alive?100|30}}" }, ${"../Spotted/enemySpottedMarker.xc":"enemySpottedMarker"} ] }, And still i am having problem Edited March 8, 2015 by user21 Quote Share this post Link to post Short link Share on other sites
jem1510 107 #257151 Posted March 9, 2015 happened only in the replacement tag "<tab>" on " " in "formatRight" "formatRight": "<font alpha='#A0'>{{clan}}</font> <font color='{{c:xwn8}}' alpha='{{alive?#FF|#80}}'>{{name%.12s~..}}</font> ", 1 Quote Share this post Link to post Short link Share on other sites
user21 0 #257186 Posted March 9, 2015 Thanks man, it works. One more question, is there any list of codes that can be used for xvm? Will all HTML codes will work? Quote Share this post Link to post Short link Share on other sites
jem1510 107 #257201 Posted March 9, 2015 Будут ли все HTML коды будут работать? Most html code work. 1 Quote Share this post Link to post Short link Share on other sites