Jump to content
Korean Random

HP Bar in the ears (allowHpInPanelsAndMinimap)


Recommended Posts

what I need to change or add if I want to stripe HP lines were equal for each tank (picture 2)  now have different (picture 1)




"extraFieldsLeft": [
         "<img src=xvm://res/icons/pPhp/panel-bg-l.png' width='100' height='1'>",
            "<img src='xvm://res/icons/pPhp/_bg.png' width='{{hp-max:100}}' height='1'>",
            "<img src='xvm://res/icons/pPhp/_ally-{{alive|dead}}.png' width='{{hp:100}}' height='1'&gt],
    "extraFieldsRight": [
         "<img src=xvm://res/icons/pPhp/panel-bg-r.png' width='100' height='1'>",
            "<img src='xvm://res/icons/pPhp/_bg.png' width='{{hp-max:100}}' height='1'>",
            "<img src='xvm://res/icons/pPhp/_enemy-{{alive|dead}}.png' width='{{hp:100}}' height='1'&gt],
"width": 60

post-16124-0-04885200-1402653333_thumb.jpg

Link to comment
Short link
Share on other sites

yes its your :)

but i  sow this

 

post-13490-0-89923800-1399936062.jpg
and

 

post-14793-0-48541200-1399968677.jpg

 have the same length i need make my on healthbars or what

 


i make  this  and  its working

"extraFieldsLeft": [
     { "x": 20, "y": 25, "h": 2, "w": 70, "src": "xvm://res/icons/pPhp/_bg.png"},
     { "x": 20, "y": 25, "h": 2, "w": "{{hp-ratio:72}}", "src": "xvm://res/icons/pPhp/_ally-{{alive|dead}}.png" },
     { "x": 20, "y": 0, "alpha": "{{alive?100|10}}", "shadow": {} },
     {}
    ],
    "extraFieldsRight": [
     { "x": 40, "y": 25, "h": 2, "w": 70, "src": "xvm://res/icons/pPhp/_bg.png"},
     { "x": 40, "y": 25, "h": 2, "w": "{{hp-ratio:72}}", "src": "xvm://res/icons/pPhp/_enemy-{{alive|dead}}.png" },
     { "x": 40, "y": 0, "alpha": "{{alive?100|10}}", "shadow": {} },
     {}
    ],

Link to comment
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...