Jump to content
Korean Random
Sign in to follow this  
dubble_u

Squad icon in MediumPanel

Recommended Posts

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!

post-28289-0-06377200-1414667343_thumb.jpg

Share this post


Link to post

Short link
Share on other sites

@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 by Azbuka_slovensko
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

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:

Knipsel.jpg

 

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}}" }
    ]
  },

Share this post


Link to post

Short link
Share on other sites

@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'>",

Share this post


Link to post

Short link
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...