Jump to content

Bug: "Players Panel/Med Panel/Variable Bar Size" Overlaps Contour Icons


Recommended Posts

Hi

 

In playersPanel.xc you can try making prefered panel wider

 

   ],
      "width": 56
 
These are the lines needed for HP in ears and can be combined:
 
 
 
    "extraFieldsLeft": [
      { "x": 26, "y": 2, "valign": "center", "h": 21, "w": "100", "bgColor": 0, "alpha": "{{alive?35|0}}" },
      { "x": 26, "y": 2, "valign": "center", "h": 21, "w": "{{hp-ratio:100}}", "bgColor": ${"def.c1"}, "alpha": "{{alive?75|0}}" },
      { "w": 3,  "y": 2, "valign": "center", "h": 21, "bgColor": ${"def.c1"}, "alpha": "{{alive?35|0}}" },
      {}
    ],
      "extraFieldsRight": [
      { "x": 26, "y": 2, "valign": "center", "h": 21, "w": "100", "bgColor": 0, "alpha": "{{alive?35|0}}" },
      { "x": 26, "y": 2, "valign": "center", "h": 21, "w": "{{hp-ratio:100}}", "bgColor": ${"def.c2"}, "alpha": "{{alive?75|0}}" },
      { "w": 3,  "y": 2, "valign": "center", "h": 21, "bgColor": ${"def.c2"}, "alpha": "{{alive?35|0}}" },
 
 
Thats the graphics of the HP-bar ("h":21  is the thickness and  "bgColor": ${"def.c2"}   is the color of the bar, defined at the very top.
 
 
Edit:     length of bar (ofcourse)   "w": "100"
Link to comment
  • Administrator

This should be fine:

 
      "extraFieldsLeft": [
      { "x": 26, "y": 2, "valign": "center", "h": 21, "w": "{{hp-max:100}}", "bgColor": 0, "alpha": "{{alive?35|0}}" },
      { "x": 26, "y": 2, "valign": "center", "h": 21, "w": "{{hp:100}}", "bgColor": ${"def.c1"}, "alpha": "{{alive?75|0}}" },
      { "w": 3,  "y": 2, "valign": "center", "h": 21, "bgColor": ${"def.c1"}, "alpha": "{{alive?35|0}}" },
      {}
    ],
      "extraFieldsRight": [
      { "x": 26, "y": 2, "valign": "center", "h": 21, "w": "{{hp-max:100}}", "bgColor": 0, "alpha": "{{alive?35|0}}" },
      { "x": 26, "y": 2, "valign": "center", "h": 21, "w": "{{hp:100}}", "bgColor": ${"def.c2"}, "alpha": "{{alive?75|0}}" },
      { "w": 3,  "y": 2, "valign": "center", "h": 21, "bgColor": ${"def.c2"}, "alpha": "{{alive?35|0}}" },
      { "x": 0, "y": 4, "align": "center", "valign": "top", "bindToIcon": "true", "format": "{{spotted}}   ", "alpha": "{{alive?100|0}}", "shadow": {} },
      {}
    ],
      "width": 56
 
Funny I always wanted to fix it, but always forgot about it :)
 
Will apply it in next modpack release.
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.