dubble_u 0 Posted October 30, 2014 Hello, How can i get the squad icon (like in the screenshot) into my MediumPanel. The picture is taken with the Large Panel. What do i need to change in which file? I just can't find it... Thx! Quote Share this post Link to post Short link Share on other sites
Azbuka 278 #226263 Posted October 30, 2014 (edited) @dubble_u, In text box: "<img src='xvmres://icons/squad/{{squad-num}}.png' width='xx' height='xx'>" width='xx' height='xx' - optional parameters. And in xvm/res/icons/squad/ folder you need have images named by 1.png,2.png,3.png, etc. For example i attached default client icons, which were taken from @night_dragon_on config. squads.zip Edited October 30, 2014 by Azbuka_slovensko 1 Quote Share this post Link to post Short link Share on other sites
dubble_u 0 #226700 Posted November 3, 2014 Hey, thanks, But i don't really find it. In which file do i need to put this file? Quote Share this post Link to post Short link Share on other sites
dubble_u 0 #226935 Posted November 4, 2014 Hey, i found it, and it was not that hard.. But, still it isn't as i should be This is what i get now: Some suggestions? "medium": { "width": 110, "formatLeft": "<font color='{{c:wn8}}'>{{name%.15s~..}}{{clan}}</font> <img src='xvmres://icons/squads/{{squad-num}}.png' width='30' height='24'>", "formatRight": "<font color='{{c:wn8}}'>{{name%.15s~..}}{{clan}}</font>", "extraFieldsLeft": [ { "x": 0, "y": 22, "valign": "center", "w": 110, "h": 2, "bgColor": "0xffffff", "alpha": "{{alive?75|0}}" }, { "x": 0, "y": 22, "valign": "center", "w": "{{hp-ratio:110}}", "h": 2, "bgColor": "0x149612", "alpha": "{{alive?100|0}}" } ], "extraFieldsRight": [ { "x": 0, "y": 22, "valign": "center", "w": 110, "h": 2, "bgColor": "0xffffff", "alpha": "{{alive?75|0}}" }, { "x": 0, "y": 22, "valign": "center", "w": "{{hp-ratio:110}}", "h": 2, "bgColor": "0xdc0f00", "alpha": "{{alive?100|0}}" } ] }, Quote Share this post Link to post Short link Share on other sites
VicKing 650 #227106 Posted November 4, 2014 @dubble_u, try to swap elevents: "formatLeft": "<img src='xvmres://icons/squads/{{squad-num}}.png' width='30' height='24'> <font color='{{c:wn8}}'>{{name%.15s~..}}{{clan}}</font>", "formatRight": "<font color='{{c:wn8}}'>{{name%.15s~..}}{{clan}}</font> <img src='xvmres://icons/squads/{{squad-num}}.png' width='30' height='24'>", Quote Share this post Link to post Short link Share on other sites