Jump to content
Korean Random

Настройка динамической прозрачности тени


Recommended Posts

Помогите настроить прозрачность тени, чтобы она после смерти не отображалась.

 

Вот так у меня прописываются ХП в ушах:

 

"hitPoints": {
    "x": 220,
    "y": 0,
    "bindToIcon": false,
    "format": "<font color='{{c:hp-ratio}}' alpha='{{alive?#FF|#0}}'>{{hp}}</font>",
    // shadow (see below).
    // настройки тени (см. ниже).
    "shadow": {
"enabled": true,
"distance": 1,             // (in pixels)
"size": 2,
      "angle": 90,                // (0.0 .. 360.0)
      "color": "0x000000",       // "0xXXXXXX"
      "alpha": 100,               // (0 .. 100)
      "blur": 1,                 // (0.0 .. 255.0)
      "strength": 10              // (0.0 .. 255.0)
}
  },

 

Скрин:

post-27575-0-32272500-1420814822_thumb.jpg

 

Файл настройки ушей целиком:

 

playersPanel.xc

Link to comment
Short link
Share on other sites

пробуйте так:

"alpha": "{{alive?1|0}}"

а вообще зачем использовать прозрачность текста и тени, если можно общую альфу задать?

"alpha": "{{alive?100|50}}"

попробуйте так:

"hitPoints": {

    "x": 220,
    "y": 0,
    "bindToIcon": false,

     "alpha": "{{alive?100|50}}",
    "format": "<font color='{{c:hp-ratio}}'>{{hp}}</font>",
    // shadow (see below).
    // настройки тени (см. ниже).
    "shadow": {
"enabled": true,
"distance": 1,             // (in pixels)
"size": 2,
      "angle": 90,                // (0.0 .. 360.0)
      "color": "0x000000",       // "0xXXXXXX"
      "alpha": 100,               // (0 .. 100)
      "blur": 1,                 // (0.0 .. 255.0)
      "strength": 10              // (0.0 .. 255.0)
}

  },

Edited by Hawk1983x
  • Upvote 1
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...