Jump to content
Korean Random
Sign in to follow this  
user21

Squad icon on medium panel

Recommended Posts

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

shot_008.jpg

 

What should i do?

 

Thanks in advance

Share this post


Link to post

Short link
Share on other sites

can best be done through an extra field?

post-29258-0-80944900-1425735353_thumb.jpg

{ "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

Share this post


Link to post

Short link
Share on other sites

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

Share this post


Link to post

Short link
Share on other sites

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 by jem1510

Share this post


Link to post

Short link
Share on other sites

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

 

shot_009.jpg

Edited by user21

Share this post


Link to post

Short link
Share on other sites

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>          ",
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

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?

Share this post


Link to post

Short link
Share on other sites

 

 

Будут ли все HTML коды будут работать?

Most html code work. 

  • Upvote 1

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...