dubble_u Posted October 30, 2014 Share 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 Link to comment Short link Share on other sites More sharing options...
Azbuka Posted October 30, 2014 Share 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 Link to comment Short link Share on other sites More sharing options...
dubble_u Posted November 3, 2014 Author Share Posted November 3, 2014 Hey, thanks, But i don't really find it. In which file do i need to put this file? @ Quote Link to comment Short link Share on other sites More sharing options...
dubble_u Posted November 4, 2014 Author Share 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 Link to comment Short link Share on other sites More sharing options...
VicKing Posted November 4, 2014 Share 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 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.